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 Item9693 for docu changes for 1.2 and 2.0.

Item11440: Inside
 formatted text, ,  tags are lost in WYSIWYG transition %TABLE{ id="summaryTable" sort="off" }%
| *Priority:* | *CurrentState:* | *AppliesTo:* | *Component:* | *WaitingFor:* |
| Urgent | Closed | Extension | WysiwygPlugin |  |

If you edit and save this in the WYSIWYG,

this will
disappear.
 and
 this will be surrounded by stars

-- JayenAshar - 14 Jan 2012

As we are talking about data loss (well, loss of formatting), I raised this to urgent.

-- PaulHarvey - 14 Jan 2012

Confirmed on foswiki.org/Sandbox (1.1.4). Not happening on trunk (though the tags are converted to starred wikitext)

-- PaulHarvey - 14 Jan 2012

data loss and/or loss of formatting, depending on (i think) line breaks. displayed text should NOT disappear. the stars are undesirable, but not unusable.

-- JayenAshar - 14 Jan 2012

I was able to save things using sticky tags around the pre block. Putting sticky tags around the b removed the line-starting space character. Using Set WYSIWYGPLUGIN_STICKYBITS = pre.*= had no effect.

-- JayenAshar - 15 Jan 2012

IDEA! To whoever fixes this: please see if this also closes Item11471

-- PaulHarvey - 27 Jan 2012

Assuming this is a related problem, but:

This will disappear,
leaving an empty pre-tag

As will
this.

Note that it's not just the tag that is lost. It is the text within the tag (sometimes).

-- JayenAshar - 28 Jan 2012

found one problem: Node.pm, line 1131 should be a single-line regex:
    $contents =~ /^($WC::WS)(.*?)($WC::WS)$/s;

-- JayenAshar - 12 Feb 2012

and another change: Node.pm, line 1633 shouldn't convert html2tml in pre tags:
            $options | $WC::NO_BLOCK_TML | $WC::BR2NL | $WC::KEEP_WS );

-- JayenAshar - 12 Feb 2012

See attached patch for test cases.

-- JayenAshar - 12 Feb 2012

Thanks Jayen, patch applied.

-- CrawfordCurrie - 09 Mar 2012

Thanks. As soon as I get selenium working, I'll commit some selenium tests.

-- JayenAshar - 10 Mar 2012
 

ItemTemplate edit

Summary Inside
 formatted text, ,  tags are lost in WYSIWYG transition 
ReportedBy Main.JayenAshar
[[Codebase]] 1.1.4, 1.1.4 RC2, 1.1.4 RC1, 1.1.4 beta2, 1.1.4 beta1, 1.1.3
SVN Range
AppliesTo Extension
Component WysiwygPlugin
[[Priority]] Urgent
CurrentState Closed
WaitingFor
Checkins Foswikirev:13858 Foswikirev:13859 Foswikirev:13867 Foswikirev:13868 Foswikirev:13869 Foswikirev:13870 Foswikirev:14266 Foswikirev:14267 Foswikirev:14269
TargetRelease patch
ReleasedIn 1.1.5
CheckinsOnBranches Release01x01 trunk
trunkCheckins Foswikirev:13859 Foswikirev:13868 Foswikirev:13869 Foswikirev:14266
Release01x01Checkins Foswikirev:13858 Foswikirev:13867 Foswikirev:13870 Foswikirev:14267 Foswikirev:14269
%TABLE{valign="middle" dataalign="left,left,left,right,left,left,left,left" datavalign="top" headeralign="left" headercolor="#0066cc" databg="#ffffff" headerbg="#ffffff" headerbgsorted="#eeeeee" databgsorted="#f5f5f5" summary="Topic attachments" caption="Topic attachments"}%
| *I* | *Attachment* | *Action* | *Size* | *Date* | *Who* | *Comment* | | WysiwygPlugin.diffdiff | WysiwygPlugin.diff | manage | 2.0 K|12 Feb 2012 - 14:18 |Main.JayenAshar |  |
Topic revision: r23 - 11 Apr 2012, [[Main.GeorgeClark][GeorgeClark]]
---++ Submit and Query * bug Create Task * [[MyItems][My Items]] * [[WebSearch][Task Search]] * [[Component][All Extensions]] * [[WebChanges][Changes]] ---++ Developer Tasks * [[ReleaseBlocker][Release Blockers]] * [[ReleaseNormals][Normal Priority]] * [[ReleaseLows][Low Priority]] * [[NewItems][New Items]] * [[WaitingForSomeone][Waiting For Feedback]] * [[WaitingForRelease][Waiting For Release]] * [[NeedsMerge][Needs Merge]] * [[ClosedItems][Closed]] * [[AllOutStandingItems][Outstanding Items]] * [[AllOutstandingEnhancements][Outstanding Enhancements]] * [[RecentlyClosed][Recently Closed]] * [[TasksByRelease][Tasks by Release]] ---++ Non Developer Tasks * WebSiteTasks * ProjectTasks ---++ Developer Tools * [[HallOfFame][ Hall of Fame]] * [[WebAdmin][Admin Tools]] * [[FixesReleaseNotes][Fixes for Rel. Notes]] * [[http://trac.foswiki.org/browser][Trac Browser]] ---++ Tools * [[Tasks.WebHome][Tasks]] * [[Tasks.WebTopicList][Index]] * [[System.FoswikiSiteChanges][Changes in all webs]] * [[Tasks.WebNotify][Notifications]] * [[Tasks.WebStatistics][Statistics]] * [[Sandbox.WebHome][Sandbox]]
 
*
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see Community.CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads