New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Using an extension: Answered

How to include examples of html/xml in a Edit Table Plugin?

Some users had a lot of tables (editable via the EditTablePlugin) showing sample of HTML code and the result, e.g:
code result
<b>X</b> X

However, at each edit/save cycle via the EditTable Edit button, the html code is evaluated once meaning the html entities &lt; is transformed into a <

They also used to have verbatim tags for big examples, but now edit/saving adds <br /> instead of newlines

The only workaround they found is to have one verbatim per line, eg:

<verbatim>one</verbatim> <verbatim>two</verbatim> <verbatim>three</verbatim>

Is there a way I missed to "protect" from extra expansion?

PS we are migrating to Foswiki 1.0.7 from... a TWiki Cairo, where we did not have this expansion.

Sandbox topic: TestTopic44457

-- ColasNahaboo

The html tags are converted by WysiwygPlugin. To protect the edit table tags, put sticky tags around it. For example:

%EDITTABLE{ header="|*text*|" format="|textarea,6x48|" changerows="on"}%
| *text* |
| <b>X</b> |
| <strong>X</strong> |

Due to a bug in the plugin, the ending sticky tag is appended to the table, unless you put the nop tag before it on a new line.

-- ArthurClemens - 24 Mar 2010

QuestionForm edit

Subject Using an extension
Extension EditTablePlugin
Version Foswiki 1.0.7
Status Answered
Topic revision: r2 - 24 Mar 2010, ArthurClemens - This page was cached on 11 Mar 2018 - 15:05.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License