• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item4828: TMCE garbage case - strange translations into absolute urls and protected tags

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension TinyMCEPlugin Normal No Action Required   minor  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

One of our power users made this little line in a topic.

*|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;excludetopic=Acronym*&amp;regex=on&amp;search=%5Ea">A</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Eb">B</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ec">C</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ed">D</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ee">E</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ef">F</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Eg">G</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Eh">H</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ei">I</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ej">J</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ek">K</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5El">L</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Em">M</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5En">N</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Eo">O</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ep">P</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Eq">Q</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Er">R</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Es">S</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Et">T</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Eu">U</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ev">V</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;excludetopic=Web*&amp;regex=on&amp;search=%5Ew">W</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ex">X</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ey">Y</a>|<a href="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ez">Z</a>|*

Or just pasted in (in raw edit) and the edited and saved in TMCE

| /do/search/Bugs/?scope=topic&excludetopic=Acronym*&regex=on&search=%5Ea">A| /do/search/Bugs/?scope=topic&regex=on&search=%5Eb">B| /do/search/Bugs/?scope=topic&regex=on&search=%5Ec">C| /do/search/Bugs/?scope=topic&regex=on&search=%5Ed">D| /do/search/Bugs/?scope=topic&regex=on&search=%5Ee">E| /do/search/Bugs/?scope=topic&regex=on&search=%5Ef">F| /do/search/Bugs/?scope=topic&regex=on&search=%5Eg">G| /do/search/Bugs/?scope=topic&regex=on&search=%5Eh">H| /do/search/Bugs/?scope=topic&regex=on&search=%5Ei">I| /do/search/Bugs/?scope=topic&regex=on&search=%5Ej">J| /do/search/Bugs/?scope=topic&regex=on&search=%5Ek">K| /do/search/Bugs/?scope=topic&regex=on&search=%5El">L| /do/search/Bugs/?scope=topic&regex=on&search=%5Em">M| /do/search/Bugs/?scope=topic&regex=on&search=%5En">N| /do/search/Bugs/?scope=topic&regex=on&search=%5Eo">O| /do/search/Bugs/?scope=topic&regex=on&search=%5Ep">P| /do/search/Bugs/?scope=topic&regex=on&search=%5Eq">Q| /do/search/Bugs/?scope=topic&regex=on&search=%5Er">R| /do/search/Bugs/?scope=topic&regex=on&search=%5Es">S| /do/search/Bugs/?scope=topic&regex=on&search=%5Et">T| /do/search/Bugs/?scope=topic&regex=on&search=%5Eu">U| /do/search/Bugs/?scope=topic&regex=on&search=%5Ev">V| /do/search/Bugs/?scope=topic&excludetopic=Web*&regex=on&search=%5Ew">W| /do/search/Bugs/?scope=topic&regex=on&search=%5Ex">X| /do/search/Bugs/?scope=topic&regex=on&search=%5Ey">Y| /do/search/Bugs/?scope=topic&regex=on&search=%5Ez">Z|

But after editing and saving in TMCE this is toast.

Can't we find a way to mark a section has "don't touch this TMCE"?

And why do we get absolute URLs and strange tags?

-- TWiki:Main/KennethLavrsen - 15 Oct 2007

The above mangling is not as bad as in IE. I can only edit and save in FF because of the current mandatory field bug.

But when saving in IE the resulting raw code after TMCE's tender loving care looks like this:

*|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%*
/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;excludetopic=Acronym*&amp;regex=on&amp;search=%5Ea"&gt;A|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Eb"&gt;B|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ec"&gt;C|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ed"&gt;D|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ee"&gt;E|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ef"&gt;F|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Eg"&gt;G|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Eh"&gt;H|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ei"&gt;I|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ej"&gt;J|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ek"&gt;K|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5El"&gt;L|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Em"&gt;M|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5En"&gt;N|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Eo"&gt;O|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ep"&gt;P|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Eq"&gt;Q|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Er"&gt;R|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Es"&gt;S|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Et"&gt;T|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Eu"&gt;U|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ev"&gt;V|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;excludetopic=Web*&amp;regex=on&amp;search=%5Ew"&gt;W|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ex"&gt;X|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ey"&gt;Y|<A href="http://celine.lavrsen.dk/twiki/bin/edit/Acronym/<span%20class=" WYSIWYG_PROTECTED?>%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&amp;regex=on&amp;search=%5Ez"&gt;Z|

What are all those WYSIWYG_PROTECTED strings doing there?

-- TWiki:Main.KennethLavrsen - 15 Oct 2007

Very odd; reproducable, needs more analysis.

CC

The problem arises because of the use of TWiki variables inside the parameters to an HTML tag. The translator does its best to protect the twiki variables by putting PROTECTED spans around them, but the HTML parser in the browser doesn't understand that, and automatically closes what it thinks are mismatched open/closes in the XHTML. If the author had used this formulation:

*|[[%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%INCLUDINGWEB%/?scope=topic&excludetopic=Acronym*&regex=on&search=^a][A]]|*
or surrounded the whole thing with sticky tags, then there would have been no problem.

Setting to no action, as there just isn't anything that can be done about this without redesigning TML, and either of the workaround above works.

CC

ItemTemplate
Summary TMCE garbage case - strange translations into absolute urls and protected tags
ReportedBy TWiki:Main.KennethLavrsen
Codebase 4.2.0, ~twiki4
SVN Range TWiki-4.3.0, Fri, 12 Oct 2007, build 15261
AppliesTo Extension
Component TinyMCEPlugin
Priority Normal
CurrentState No Action Required
WaitingFor

Checkins

TargetRelease minor
ReleasedIn

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2007-10-18 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback