Foswiki on GitHub is open for business! Next release meeting: Monday September 29, 1300Z

Item11859: Switching from raw to WYSIWYG and back, removes

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Urgent Closed Engine TinyMCEPlugin  
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
 

ItemTemplate edit

Summary Switching from raw to WYSIWYG and back, removes
ReportedBy JozefMojzis
Codebase 1.1.5
SVN Range
AppliesTo Engine
Component TinyMCEPlugin
Priority Urgent
CurrentState Closed
WaitingFor
Checkins Foswikirev:14820 Foswikirev:14821
TargetRelease patch
ReleasedIn 1.1.6
CheckinsOnBranches Release01x01 trunk
trunkCheckins Foswikirev:14820
Release01x01Checkins Foswikirev:14821
Topic revision: r7 - 02 Dec 2012, GeorgeClark
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License