Sections of text marked with protected style are only saved if saving using the preview --> save procedure (as opposed to saving directly). In this particular case, I was trying to protect the html comment blocks were my page "SET variables" reside.
I'm using
TinyMCEPlugin (15536) and
WysiwygPLugin (15536) with Firefox.
--
TWiki:Main/DeanSpicer
- 14 Nov 2007
Obviously I use protected style quite a lot, so I'm surprised by this. I need to see
exactly what you entered (cook up a simple example that demonstrates the problem). What I'd really like is the HTML which you can see in the 'HTML' view in
TinyMCE.
Thanks
CC
The text (cut & paste) straight from the editor:
My Links:
* Sandbox.DeanSpicerSandbox
* [[Eng.Admin][Admin Shortcuts]]
<!--
---++ My Personal Preferences
Uncomment preferences variables to activate them (remove the #-sign). Help and details on preferences variables are available in %TWIKIWEB%.%WIKIPREFSTOPIC%.
* Show tool-tip topic info on mouse-over of %TWIKIWEB%.WikiWord links, on or off:
* Set LINKTOOLTIPINFO = on
* Horizontal size of text edit box:
* #Set EDITBOXWIDTH = 70
* Vertical size of text edit box:
* #Set EDITBOXHEIGHT = 22
* Style of text edit box. =width: 99%= for full window width (default), =width: auto= to disable.
* #Set EDITBOXSTYLE = width: 99%
* Write protect your home page: (set it to your %TWIKIWEB%.WikiName)
* Set #ALLOWTOPICCHANGE = User.DeanSpicer
-->
The HTML from the editor is
here.
--
TWiki:Main.DeanSpicer
- 15 Nov 2007
It's confirmed that this is not related to my server setup...I'm having issues trying to show my example. The editor keeps moving the closing verbatim tag. I had to resort to Raw edit to make it work.
--
TWiki:Main.DeanSpicer
- 15 Nov 2007
I can't see any problem with it; I can save with <sticky> tags without having to go through preview. What browser are you using? Please give me a step-by-step description of how to reproduce the problem.
Note that unprotected HTML comment blocks are
removed by IE (this is done by the browser) so you may be encountering an issue with this.
CC
I'm using Firefox, not IE, so my problem doesn't relate to how IE handles comment blocks.
To reproduce the problem:
- Create a new page
- Cut and paste the following text into the editor:
<!--
---++ My Personal Preferences
Uncomment preferences variables to activate them (remove the #-sign). Help and details on preferences variables are available in TWiki.TWikiPreferences.
* Show tool-tip topic info on mouse-over of TWiki.WikiWord links, on or off:
* Set LINKTOOLTIPINFO = on
* Horizontal size of text edit box:
* #Set EDITBOXWIDTH = 70
* Vertical size of text edit box:
* #Set EDITBOXHEIGHT = 22
* Style of text edit box. =width: 99%= for full window width (default), =width: auto= to disable.
* #Set EDITBOXSTYLE = width: 99%
* Write protect your home page: (set it to your TWiki.WikiName)
* #Set ALLOWTOPICCHANGE = User.DeanSpicer
-->
-- User.DeanSpicer - 18 Nov 2007
- Then select the section in the html comment block and apply the "protect forever" style.
- Save
- The protect forever will not work as intended. (Comment block will still be seen in the topic view)
- edit the topic again. Don't change anything, but this time Preview, then save.
- The protect style will work as intended and the comment block will not be shown in the topic.
Hopefully that's clear...and that you are able to duplicate it.
--
TWiki:Main.DeanSpicer
- 18 Nov 2007
Nope. I followed your instructions as far as step 6, and the protect forever worked just fine. The comment block was not visible in the finished topic, and the next time I edited the topic it was still protected. We are missing something here; I assume you have tried to reproduce this problem on this server? Please repeat steps up to 6 on a topic in the
LitterTray web, so I can review it. (please don't write-protect the topic!)
CC
Ack, try as I might I could not reproduce it on this server. Had no problem on my server though. Perhaps it's related to my installed plugins or that I'm running TWiki version 4.1.2 not 4.2.0. If you are interested we can investigate that...although I completely understand if you close this bug report and move to more pressing items.
--
TWiki:Main.DeanSpicer
- 18 Nov 2007
OK, I'm closing this then. please re-open when you are able to reproduce.
CC