Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Content Editor Discussions /

Forum for content editors and CMS users.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

How to join paragraphs containign soft line breaks


Go to End


3 Posts   3306 Views

Avatar
inCharge

Community Member, 102 Posts

3 June 2010 at 10:33pm

I found a strange problem with the HTML editor and I wonder of there's a fix or work-around.

When you try to join two paragraphs containing soft line breaks, the first soft-line-break above the join is converted to a paragraph break.

The problem is easy to reproduce: Make a list of words seperated by soft line breaks (Shift+return), but with one paragraph break in the middle. It looks like this:

One
Two
Three

Four
Five
Six

Then join the two paragraphs together by placing the cursor after 'Three' and pressing the Delete key. The 'Three' and 'Four' lines are joined, but the soft-line-break between 'Two' and 'Three' has been changed to a paragraph break, so it looks like this:

One
Two

ThreeFour
Five
Six

Thanks,
Jules

Avatar
inCharge

Community Member, 102 Posts

9 June 2010 at 3:02am

I submitted this to the TinyMCE bug tracker last night...

http://sourceforge.net/tracker/?func=detail&atid=635682&aid=3012932&group_id=103281

...and it was fixed in their Git repository by lunchtime today!

Maybe it'll be released in the next TinyMCE version (The latest version is 3.3.6)

All I need to do now is upgrade TinyMCE in SIlverStripe, which is probably easier said than done.

Avatar
inCharge

Community Member, 102 Posts

17 June 2010 at 5:03am

Upgrading TinyMCE is non-trivial...
http://www.silverstripe.org/general-questions/show/286197

There's a work-around to the bug...

- Place the cursor at the end of the paragraph before the break.
- Select the paragraph break by holding down the shift key and pressing the right cursor key
- Press any character
- Press backspace to delete the character you just typed
- The paragraphs are joined and the soft line break is unchanged.