views:

196

answers:

3

The following code should allow to hide/show the CKEditor form

<a onClick="$('#form1').hide();">Hide</a>
<a onClick="$('#form1').show();">Show</a>
<form action="sample_posteddata.php" method="post" id="form1">
    <textarea id="editor1" name="editor1">blabla</textarea>
    <script type="text/javascript"> CKEDITOR.replace( 'editor1' ); </script>
    <input type="submit" value="Submit" />
</form>

However, this code works fine on Chrome but on Firefox, once I have toggled once the editor (one 'hide' click followed by one 'show' click) , it becomes not editable !!

How can I make it work on every browser?

Thank you.

+1  A: 

Looks like this might help you out:

http://dev.ckeditor.com/ticket/544

In the report I linked to they show trying something like this:

if (frames[0]) {
  frames[0].FCK.EditingArea.MakeEditable();
}
spinon
I'll try your suggestion...but the bug you have likned it is marked as FIXED and I am using last version of CKEditor.
fabien7474
I tried it but itis not working (FCK is not used anymore in CKEditor version 3.X). Do you have another idea?
fabien7474
Do you have a site that I can test on?
spinon
You can download an example here : http://www.4shared.com/file/5bQxbrEl/ckeditor_samples.html. Just unzip and open the html file. Click hide/show => it will not work on FF
fabien7474
A: 

Try wrapped it in a div eg : <div id="fckz"> <form >...</form> </div> and make the hide show on the div .

shox
I have already tried. Not working at all.
fabien7474
+1  A: 

It doesn't seem to have a real workaround.

See here for more info. The only solution is to wait for CKEditor new version 3.4.

fabien7474