You are here: Foswiki>Tasks Web>Item11859 (02 Dec 2012, GeorgeClark)Edit Attach

Item11859: Switching from raw to WYSIWYG and back, removes

pencil
Priority: Urgent
Current State: Closed
Released In: 1.1.6
Target Release: patch
Applies To: Engine
Component: TinyMCEPlugin
Branches: Release01x01 trunk
Reported By: JozefMojzis
Waiting For:
Last Change By: GeorgeClark
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 distro:23431f6a8474 distro:a4566de60651
TargetRelease patch
ReleasedIn 1.1.6
CheckinsOnBranches Release01x01 trunk
trunkCheckins distro:23431f6a8474
Release01x01Checkins distro:a4566de60651
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 Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy