SID-01973: How to preserve HTML?
| Status: |
Answered |
TWiki version: |
5.1.1 |
Perl version: |
|
| Category: |
CategoryEditing |
Server OS: |
|
Last update: |
11 years ago |
I need to use a HTML table in order to handle variables that expand to multiple lines.
(See
Support.SID-01972)
But what is the recommended way to enter HTML?
If I use the raw editor, I can create a HTML table no problem.
But if I (or another user) subsequently edit the topic in WYSIWYG mode, the HTML code is automatically changed to TWiki markup. And the "multi-line variables in a table" problem is re-introduced.
Is there any way to avoid this?
--
Ben Kinsella - 2014-09-19
Discussion and Answer
Two options:
1. Using raw edit, enclose HTML in
<sticky>...</sticky> tags. Details in
WysiwygPlugin
2. Define preferences variables to hide the HTML for tables, and use those. For example define STARTTABLE, STARTROW, ..., ENDTABLE settings in
Main.TWikiPreferences, then use the new variables to compose an HTML table
--
Peter Thoeny - 2014-09-19
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.