Item11859: Switching from raw to WYSIWYG and back, removes
Priority: Urgent
Current State: Closed
Released In: 1.1.6
Target Release: patch
Applies To: Engine
Component: TinyMCEPlugin
Branches: Release01x01 trunk
Enter to the topic (in the raw mode):
aaa<br />
bbb<br />
ccc<br />
Press the WYSIWYG button (switch to WYSIWYG) and again back to RAW. The BR's are removes, so you get
aaa
bbb
ccc
What is wrong, because the next WYSIWYG will transform it into single line:
aaa bbb ccc
Tested on the:
TinyMCEPlugin (1.2.7, $Rev: 14671 (2012-04-27) $): Integration of the Tiny MCE WYSIWYG Editor
--
JozefMojzis - 13 May 2012
I think this might be yet another duplicate of
Item11819. I hope Georg has time to republish his working versions to the Extensions web (and thus the debian and other repositories) soon.
--
FranzJosefGigler - 13 May 2012
Unfortunately this is a new issue. It's actually an intentional behavior because TMCE used to insert <br/> before new paragraphs. There were two places in the
HTML2TML
code that searched for line-ending breaks and removed them. This goes way back. See
TWiki bug Item5127.
I've tried to recreate the issue, and TMCE does not appear to insert extra breaks in the current version.
Fix for this removes the code that checks for breaks at end of line or before paragraphs.
--
GeorgeClark - 13 May 2012
Test for the fix on foswiki.org (Entered aaa and bbb on one line, ccc on the 3rd line
aaa
bbb
ccc
ddd
--
GeorgeClark - 14 May 2012