• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item4656: TWikiAdminGroup topic - yellow table is altered by TMCE

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine TinyMCEPlugin Urgent Closed   minor 4.2.0

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


When you edit the TWikiAdminGroup topic - and that we must assume the newbie admin does with normal Edit (ie. TMCE) then the yellow table which is HTML mixed by TML bullets - is turned into TML table with HTML bullets. And the yellow background is lost.

Can we protect an area against being altered?

Can we at least for this topic create a yellow area which is not destroyed by TMCE?

The configure help text refers to a yellow text so we need to fix something here. Even if it is just changing the doc to a TMCE safe version.

-- TWiki:Main/KennethLavrsen - 17 Sep 2007

This alternative survives

How add the first Administrator:
  1. To add yourself as the member of the admin group you must be registered as a normal user
  2. Next you must Log In as this normal user
  3. Authenticate as the internal TWiki administrator using the internal admin login (use the username already suggested and use the password set in configure).
  4. You can now edit this topic
  5. Insert wanted users in the TWiki Administrator Group by listing them in the GROUP setting
    (example * Set GROUP = JohnSmith, JamesBond)
  6. Save this topic
  7. Verify that new members show up properly in the group listing at TWikiGroups
  8. Make sure always to keep this topic write protected by keeping the already defined ALLOWTOPICCHANGE setting
  9. The ALLOWTOPICHANGE and ALLOWTOPICRENAME settings in TWiki.TWikiPreferences and Main.TWikiPreferences have already been set to this group (TWikiAdminGroup), restricting edit of site-wide preferences to the TWiki Administrator Group

-- TWiki:Main/KennethLavrsen - 17 Sep 2007

I could just check this in but I will sleep on it. Maybe there is a better way.

We need a feature to protect an area against TMCE. The PROTECT style is temporary. Maybe we need a <protect> type of tag.

-- TWiki:Main.KennethLavrsen - 17 Sep 2007

I really, really, really don't think that's a good idea. We don't want to encourage people to embed uneditable text into the middle of topics. Either make the whole topic raw-edit-only, or accept that the WYSIWYG version of the same thing will be slightly different.

Reattributing to Documentation.


Having said that I just read Item4678. It seems that you are not the only one.

The obvious thing to do is to add a class to any HTML element that you don't want touched by HTML2TML. For example:

<div class="WYSIWYG_LITERAL">

this would prevent HTML2TML working on that tag or any tag within it, which addresses Sven's requirement but not Kenneths.


You can surround key HTML sections with <literal> tags and thereby not only protect them from TML, but edit them in WYSIWYG using the HTML editing features. Apply the LITERAL style in the editor.

Mixing TML and HTML and selectively protecting the HTML from conversion is just too complex IMHO.

Checked into MAIN but NOT into TWikiRelease04x02, in anticipation of feedback.


I think its important to have a way frown and for the docco for it to be obvious from raw-edit .

I somehow thought the tinymce 'PROTECTED' sectino would do it, but with my problems using safari, i never got around to finding out what 'PROTECTED' did, or howto use it from raw-edit (somehow i thought it would be a persistent style)

-- TWiki:Main.SvenDowideit - 21 Sep 2007

The difference is subtle.

PROTECTED lets you edit raw HTML (in the editor you see HTML, not the rendered result), but once you have entered it is saved as inline HTML. LITERAL on the other hand lets you edit the presentation (you see the rendered result in the editor, not the raw HTML) but when it saves, it wraps it in <literal> tags. So, if I type <big>crocodile</big> twice in the raw editor, once in <verbatim> and once in <literal>, I get:


When you WYSIWYG edit, you see the same thing.

Now I will WYSIWYG edit, type <big>crocodile</big> again, select it and choose PROTECTED style:

You can see that it has saved the literal HTML inline, but has not put literal tags around it. So the PROTECTED style is transitory only - it protects your typing for as long as it takes to save the topic once but it doesn't stick. This is unfortunately needed for when you want to type raw HTML into the browser and have it saved exactly as you typed it, but not in literal tags - for example, when entering a Set value, or when entering HTML that will be completed when a TWiki variable is expanded (and is therefore invalid HTML in the editor).

Basically PROTECTED style will only ever be used by people editing TML concepts such as TWiki variables and Set statements. LITERAL will be used by anyone else who wants to embed literal, protected HTML in their topics.

-- TWiki:Main.CrawfordCurrie - 21 Sep 2007

Changed from Documentation to TMCE, since this has developed into a coded feature.

That said - I do not quite understand what is happening here

PROTECTED is a style which is not really a style.

LITERAL is added but I cannot see it in UI of TMCE.

If I type literal tags and put them round some HTML I want to protect then it works if I save in Edit Raw.

But if I then open the same topic again and save it, the newline in front of literal is removed.

Each time you save another newline in front of literal and /literal are removed and soon the topic format is gone.

I will open bug items for these.

Once the literal feature is working - I know how to make the TWikiAdminUser yellow text robust and still easy to edit again.


merged and closed


If the summary of this bug is still descriptive, the bug is open again - the table is still altered.

Possible workaround: Put the admin-doc/note in a "HowToMaintainTWikiAdminGroup"-topic and include it instead of maintaining the yellow table in the topic itself?

-- TWiki:Main.SteffenPoulsen - 21 Oct 2007

I actually planned to do it with LITERAL

But when I saw CC closed the bug I never followed up on it because I assumed CC had fixed it.

-- TWiki:Main.KennethLavrsen - 21 Oct 2007

You can use <literal>, as I did when I fixed it (how did it get broken again?), or you can put <sticky> tags around it.

-- TWiki:Main.CrawfordCurrie - 24 Oct 2007

I'll fix it again


I cannot use literal. See Item4888.

Trying sticky.

-- TWiki:Main.KennethLavrsen - 25 Oct 2007

Sticky worked. Sticky it is. I also moved the settings back to the top. Otherwise the new admin will have to search for the setting among the blabla.


Cleaned "WaitingFor" field.

-- TWiki:Main.GilmarSantosJr - 10 Aug 2008

Summary TWikiAdminGroup topic - yellow table is altered by TMCE
ReportedBy TWiki:Main.KennethLavrsen
Codebase ~twiki4
SVN Range TWiki-4.2.0, Sat, 15 Sep 2007, build 14883
AppliesTo Engine
Component TinyMCEPlugin
Priority Urgent
CurrentState Closed

Checkins TWikirev:14935 TWikirev:14936 TWikirev:14971 TWikirev:15108 TWikirev:15416 TWikirev:15417
TargetRelease minor
ReleasedIn 4.2.0
Edit | Attach | Watch | Print version | History: r21 < r20 < r19 < r18 < r17 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r21 - 2008-08-10 - GilmarSantosJr
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback