SID-01521: WYSIWYG editor removes text from topic
| Status: |
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:
- Has anyone experienced this and if so is there a fix?
- 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:
- 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
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.