Jump to:

517 Posts in 247 Topics by 260 members

Content Editor Discussions

SilverStripe Forums » Content Editor Discussions » How to join paragraphs containign soft line breaks

Forum for content editors and CMS users.

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

Page: 1
Go to End
Author Topic: 1885 Views
  • inCharge
    Avatar
    Community Member
    102 Posts

    How to join paragraphs containign soft line breaks Link to this post

    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

  • inCharge
    Avatar
    Community Member
    102 Posts

    Re: How to join paragraphs containign soft line breaks Link to this post

    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.

  • inCharge
    Avatar
    Community Member
    102 Posts

    Re: How to join paragraphs containign soft line breaks Link to this post

    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.

    1885 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.