• 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.

A very common feature is to set some TWiki variables inside comments so that you cannot see them in normal view mode.

The WYSIWYG plugin does not preserve new lines inside the HTML comment tags so the TWiki variables do not work at all after having opened and saved a topic with such hidden variables settings.

Example

Changes after TWiki
<!--
The next two hidden lines automatically makes the change history. Do not change or delete them
   * Set CHANGESPREVIOUS = [[%CALC{"%SCRIPTURL%/compare/%WEB%/%TOPIC%?context=-1&rev1=$TRIM($T(R$ROW(0):C4))&rev2=$TRIM($T(R$ROW(-1):C4))"}%][Changes from rev %CALC{$T(R$ROW(-1):C1)}% to %CALC{$T(R$ROW(0):C1)}%]] 
   * Set CHANGESLAST = %REVINFO{format="| Current | $date | $wikiusername | 1.$rev |"}% [[%CALC{"%SCRIPTURL%/compare/%WEB%/%TOPIC%?context=-1&rev1=%REVINFO{format="1.$rev"}%&rev2=$TRIM($T(R$ROW(-1):C4))"}%][See updates since last formal release]] |
-->
| *Revision* | *Date* | *Name* | *TWiki Version* | *Changes* |
| A | 23 Jun 2005 | Me | 1.2 | Document transferred to TWiki. |
| B | 28-Sep-2004 | Main.KennethLavrsen | 1.9 | %CHANGESPREVIOUS% |
%CHANGESLAST%
<!-- Hidden Comment
Insert new revision alove by copying the table row containing the CHANGESPREVIOUS and paste it as a new table row just before the CHANGESLAST and edit revision, date, your TwikiName and the current TWiki version. Do not make an empty line between the new version row and the CHANGESLAST
| C | 23 Jun 2005 | Me | 1.2 | %CHANGESPREVIOUS% |
-->

The code above is a smart way of creating a change history in an ISO9000 document. Only the major revisions are manually added and you can quickly see the changes in an auto generated link.

It is not necessary to be able to edit the TWiki variable stuff in WYSIWYG but it should not garble it.

The result of an open/save is

Changes after TWiki <!--The next two hidden lines automatically makes the change history. Do not change or delete them * Set CHANGESPREVIOUS = [[%CALC{"%SCRIPTURL%/compare/%WEB%/%TOPIC%?context=-1&amp;rev1=$TRIM($T(R$ROW(0):C4))&amp;rev2=$TRIM($T(R$ROW(-1):C4))"}%][Changes from rev %CALC{$T(R$ROW(-1):C1)}% to %CALC{$T(R$ROW(0):C1)}%]] * Set CHANGESLAST = %REVINFO{format="| Current | $date | $wikiusername | 1.$rev |"}% [[%CALC{"%SCRIPTURL%/compare/%WEB%/%TOPIC%?context=-1&amp;rev1=%REVINFO{format="1.$rev"}%&amp;rev2=$TRIM($T(R$ROW(-1):C4))"}%][See updates since last formal release]] | -->
| *Revision* | *Date* | *Name* | *TWiki Version* | *Changes* |
| A | 23 Jun 2005 | Me | 1.2 | Document transferred to TWiki. |
| B | 28-Sep-2004 | Main.KennethLavrsen | 1.9 | %CHANGESPREVIOUS% |
%CHANGESLAST% <!--Hidden Comment Insert new revision alove by copying the table row containing the CHANGESPREVIOUS and paste it as a new table row just before the CHANGESLAST and edit revision, date, your TwikiName and the current TWiki version. Do not make an empty line between the new version row and the CHANGESLAST | C | 23 Jun 2005 | Me | 1.2 | %CHANGESPREVIOUS% | -->

KJL

SVN 8091 treats comments as comments.

CC

ItemTemplate
Summary WYSIWYG removes newlines inside comments and destroys TWiki variables being set hidden
ReportedBy KennethLavrsen
Codebase

SVN Range Tue, 27 Dec 2005 build 7999
AppliesTo Extension
Component WysiwygPlugin
Priority Urgent
CurrentState Closed
WaitingFor

Checkins 8091
Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r9 - 2006-01-04 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback