Tags:
create new tag
view all tags

SID-01973: How to preserve HTML?

Status: Answered 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title How to preserve HTML?
SupportCategory CategoryEditing
TWiki version 5.1.1
Server OS

Web server

Perl version

Browser & version

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2014-09-19 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.