481 Posts in 150 Topics by 238 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1605 Views |
-
How to join paragraphs containign soft line breaks

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
ThreeFour
Five
SixThen 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
TwoThreeFour
Five
SixThanks,
Jules -
Re: How to join paragraphs containign soft line breaks

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.
-
Re: How to join paragraphs containign soft line breaks

17 June 2010 at 5:03am
Upgrading TinyMCE is non-trivial...
http://www.silverstripe.org/general-questions/show/286197There'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.
| 1605 Views | ||
|
Page:
1
|
Go to Top |
