Tags:
create new tag
view all tags

SID-01521: WYSIWYG editor removes text from topic

Status: Answered Answered TWiki version: 5.1.1 Perl version: 5.8
Category: CategoryEditing Server OS: Linux Last update: 13 years ago

A group of TWiki users were working on a topic with the raw editor and WYSIWYG editor. A user had introduced some <ul> </ul> tags with the raw editor but in between had not used any <li> tags. The WYSIWYG editor was later used to modify some text. This resulted in all the text between the <ul> tags being deleted.

Although the user had made the wrong use of the html tag it seemed a little harsh for the editor to remove all of this text.

2 questions:

  1. Has anyone experienced this and if so is there a fix?
  2. Is it possible to disable the WYSIWYG by topic name?

-- PeterJones - 2012-08-24

Discussion and Answer

Deleting stuff? Bad boy, bad boy, how can you behave like this?

The WYSIWYG editor has some limitations. You can work around this.

  • You can disable the WYSIWYG editor for a page by adding this setting in the page:
    • Set EDITMETHOD = raw
  • You can enclose tags that you do not want to be mangled in <sticky>...</sticky> tags.
  • You can use proper HTML, such as <blockquote>...</blockquote> to indent text.
  • You could define a system wide preferences setting to support indent, see example below.

Example: Set this in your Main.TWikiPreferences:

   * Indent:
      * Set STARTINDENT = <div style="margin-left: 3em">
      * Set ENDINDENT = </div>

Then you can use it by enclosing text in %STARTINDENT%...%ENDINDENT% variables, as in:

A group of TWiki users were working on a topic with the raw editor and WYSIWYG editor. A user had introduced some <ul> </ul> tags with the raw editor but in between had not used any <li> tags. The WYSIWYG editor was later used to modify some text. This resulted in all the text between the <ul> tags being deleted.

-- PeterThoeny - 2012-08-24

      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 WYSIWYG editor removes text from topic
SupportCategory CategoryEditing
TWiki version 5.1.1
Server OS Linux
Web server apache
Perl version 5.8
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2012-08-24 - 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.