Forum Activity for @ultrajam

SteveX
@ultrajam
06/16/16 05:05:50AM
2,584 posts

TinyMCE inserting line breaks into some list items


Jamroom Developers

Quote: function jrCore_remove_unwanted_breaks($string)
{
// fix ul
if (strpos(' ' . $string, '')) {
if (strpos(' ' . $string, ' $line) {
if (strpos(' ' . $line, '>')) {
$_tmp[$k] = str_replace('>', '>', $line);
}
}
$string = implode("\n", $_tmp);
}
}

NOTE: not right either
updated by @ultrajam: 06/16/16 05:06:59AM
SteveX
@ultrajam
06/16/16 04:47:12AM
2,584 posts

TinyMCE inserting line breaks into some list items


Jamroom Developers

I'm adding this in which gets rid of the br between ul and li
function jrCore_remove_unwanted_breaks($string)
{ // fix ul if (strpos(' ' . $string, '')) { if (strpos(' ' . $string, ' $line) { if (strpos(' ' . $line, '>')) { $_tmp[$k] = str_replace('>', '>', $line); } } $string = implode("\n", $_tmp); } }

NOTE: that doesn't look right - the forum is removing my br tags from the code! What is it with these pesky br tags!!!
updated by @ultrajam: 06/16/16 05:03:45AM
SteveX
@ultrajam
06/16/16 04:31:26AM
2,584 posts

TinyMCE inserting line breaks into some list items


Jamroom Developers

Would it be possible to have a trigger in jrCore_remove_unwanted_breaks?

I'd be able to control that for our validation and get rid of a lot of css that I've written to hide all the line breaks after heading elements, inside divs etc.

Thanks
SteveX
@ultrajam
06/16/16 03:42:25AM
2,584 posts

TinyMCE inserting line breaks into some list items


Jamroom Developers

Hi Brian,

It doesn't fix new entries either, a br tag is still inserted between the ul and the first list item.

It isn't there in the database, no \n or \r either, but there is an actual line break in the field.
SteveX
@ultrajam
06/10/16 09:33:36AM
2,584 posts

TinyMCE inserting line breaks into some list items


Jamroom Developers

Thanks Brian.

I've given that a try, but it doesn't seem to make any difference. Might just be my haste though - I'm just about to leave my desk for the weekend - I'll have to pick this up again next week as I only have ftp access to the server from here.
SteveX
@ultrajam
06/10/16 06:06:25AM
2,584 posts

TinyMCE inserting line breaks into some list items


Jamroom Developers

No, not the latest core update this morning - the librarians doing the authoring said that they noticed gaps appearing in the lists and were going to mention it next meeting.

I've been working on something else, and was on holiday for a couple of weeks before that so I can't be sure when the line breaks reappeared.
SteveX
@ultrajam
06/10/16 05:50:21AM
2,584 posts

TinyMCE inserting line breaks into some list items


Jamroom Developers

Hi Paul, it probably is the last release. We had a new workbook ready this morning and I noticed while running our validation checks on it. I hadn't noticed earlier in the week, although I wasn't looking in detail.

Thanks
SteveX
@ultrajam
06/10/16 04:08:44AM
2,584 posts

TinyMCE inserting line breaks into some list items


Jamroom Developers

Seems that line breaks are being inserted into lists again. Our layouts are messed up and validation fails on every page (due to the br before the first list item).
SteveX
@ultrajam
06/09/16 10:12:00AM
2,584 posts

Forum search results seem unlikely


Using Jamroom

Search does work well, I just thought this was a little odd.

Search results seem to be in date order - all the 2 years and then all the 3 years.
  74