• 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.

Item4968: TinyMCE does not appy protected style unless you preview, then save

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension TinyMCEPlugin Urgent No Action Required   minor  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

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:

  1. Create a new page
  2. 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

  1. Then select the section in the html comment block and apply the "protect forever" style.
  2. Save
  3. The protect forever will not work as intended. (Comment block will still be seen in the topic view)
  4. edit the topic again. Don't change anything, but this time Preview, then save.
  5. 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

ItemTemplate
Summary TinyMCE does not appy protected style unless you preview, then save
ReportedBy TWiki:Main.DeanSpicer
Codebase 4.1.2
SVN Range TWiki-4.3.0, Fri, 12 Oct 2007, build 15261
AppliesTo Extension
Component TinyMCEPlugin
Priority Urgent
CurrentState No Action Required
WaitingFor

Checkins

TargetRelease minor
ReleasedIn

Topic attachments
I Attachment History Action Size Date Who Comment
HTMLhtml TinyMCE_problem.html r1 manage 1.8 K 2007-11-15 - 17:03 DeanSpicer html that generates the "no protected style unless preview" problem
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2007-11-19 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback