NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item11383 for general documentation changes for release 1.1.5. Use Item9693 for docu changes for release 2.0.

Item2619: Code segments getting mangled when saved with TinyMCEPlugin

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal No Action Required Extension TinyMCEPlugin, WysiwygPlugin, DpSyntaxHighlighterPlugin  
We are using Foswiki 1.0.5, with DpSyntaxHighlighterPlugin 5964, TinyMCEPlugin 5860, and WysiwygPlugin 5356. If I add a code segment to a page using code/endcode syntax in raw edit, save it, then at any point in the future edit the same page in wysiwyg mode and save, it will munge the code segment, deleting line returns, changing less than and greater than symbols, etc. Essentially from the moment I add a code segment to the page I can no longer use the wysiwyg editor on it and preserve the way the page should appear.


David,

Could you please try encapsulating your %CODE%/%ENDCODE segments with <sticky>...</sticky> tags.

Protecting text between particular start/end tags is possible with XML markup (see DirectedGraphPlugin), but I'm not sure if we can do the same for START/END macro tag pairs. Would be useful though.

Lowering to normal: WysiwygPlugin eats newlines, this is a known artefact of the tml2html/html2tml round-trip process.

Solution would be to automatically mark up %CODE%/%ENDCODE content as wysiwyg sticky/protected.

-- PaulHarvey - 03 Mar 2010

Item2174 is also relevant to eating of newlines. However, note that some WYSIWYG use-cases require eating of newlines e.g. the non-technical user wants the editor to present paragraphs in the same way as they are rendered, without extra linebreaks. This is a tricky problem. For now, <sticky>...</sticky> is the way to go.

-- MichaelTempest - 03 Mar 2010

ItemTemplate edit

Summary Code segments getting mangled when saved with TinyMCEPlugin
ReportedBy DavidErickson
Codebase 1.0.5
SVN Range
AppliesTo Extension
Component TinyMCEPlugin, WysiwygPlugin, DpSyntaxHighlighterPlugin
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
Topic revision: r4 - 28 Feb 2011 - 21:37:12 - DavidErickson
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads