513 Posts in 209 Topics by 259 members
|Go to End|
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:
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:
9 June 2010 at 3:02am
I submitted this to the TinyMCE bug tracker last night...
...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.
17 June 2010 at 5:03am
Upgrading TinyMCE is non-trivial...
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.
|Go to Top|