Item11722: Verbatim block with class=foswikiHidden is hidden from edit

Priority: Normal
Current State: Closed
Released In: 1.1.6
Target Release: patch
Applies To: Extension
Component: TinyMCEPlugin, WysiwygPlugin
Branches: Release01x01 trunk
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
Noticed when editing the DefaultUserRegistration topic, I noticed that the vast majority of the topic was missing from the editor. Discovered that there was a verbatim block with class = foswikiHidden

This is a hidden block

After saving the topic, the verbatim block was revealed, (class= removed), and the 2nd edit was able to edit the block.

-- GeorgeClark - 03 Apr 2012

Partially fixed. the foswikiHidden class is now preserved. But the block is still hidden from the editor.

SvenDowideit suggested a possible fix by adding CSS to wysiwyg.css to override the display attribute for foswikiHidden, however I've been unsuccessful.

-- GeorgeClark - 27 Apr 2012

This should work (but untested):
.foswikiEditTextarea .foswikiHidden {
    display: block

-- ArthurClemens - 27 Apr 2012

I'm striking out. I've verified that wysiwyg_src.css is loaded. The textarea that is opened is:
<div class="patternEditTopic"><textarea class="foswikiTextarea foswikiEditboxStyleProportional foswikiWysiwygEdit" id="topic" name="text" rows="22" cols="70" style='width:99%'>&#60;verbatim class&#61;&#34;foswikiHidden&#34;&#62;

I disabled the natedit skin, and I've tried the following:
.foswikiTextarea .foswikiHidden {
    display: block;
.natEditTextArea .foswikiHidden {
    display: block;
.foswikiWysiwygEdit .foswikiHidden {
    display: block;

Unfortunately because it's hidden, webDeveloper toolbar has not been all that helpful.

-- GeorgeClark - 27 Apr 2012

Fixed... Needed the following:
+.mceContentBody .foswikiHidden {
+       background-image:url("watermark_hidden.gif");
+       white-space:pre nowrap;
+    display: block;

Not a complete fix. foswikiHidden cannot be set or cleared, and foswikiHidden is assumed to be a verbatim block. but at least the content can be seen and edited.

Added a watermark for hidden blocks.

-- GeorgeClark - 28 Apr 2012
Topic revision: r17 - 02 Dec 2012, GeorgeClark - This page was cached on 12 Jan 2018 - 05:22.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License