Log in or register to post comments
Last post
fabien7474's picture
Joined: 17/07/2010
Posts: 4
How to hide and show a CKEditor in Firefox?
Hello everybody,

This is my first post and I am newbie to CKEditor as well...so if my question is too simple, be indulgent with me.

It seems that there is a bug for toggling display of a CKEditor in FF 3.5. For instance, the following code (using jQuery) 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 Firefox ?

Thank you very much for your help,

Fabien.
fabien7474's picture
Joined: 17/07/2010
Posts: 4
Re: How to hide and show a CKEditor in Firefox?
nobody can help me on this one??
comp615's picture
Joined: 02/07/2010
Posts: 295
Re: How to hide and show a CKEditor in Firefox?
You probably want to hide the editor instance and not the ofrm surrounding it. But not sure, don't really have experience on that one
fabien7474's picture
Joined: 17/07/2010
Posts: 4
Re: How to hide and show a CKEditor in Firefox?
comp615 wrote:You probably want to hide the editor instance and not the ofrm surrounding it. But not sure, don't really have experience on that one

I have tried that already with the same unsuccessful results under FF.
alfonsoml's picture
Joined: 31/12/2006
Posts: 3741
Re: How to hide and show a CKEditor in Firefox?
fabien7474's picture
Joined: 17/07/2010
Posts: 4
Re: How to hide and show a CKEditor in Firefox?
alfonsoml wrote:That's http://dev.ckeditor.com/ticket/5956


Thanks. So if I understand correctly, I should wait for next version 3.4 and it will be fixed ? No need to have a workaround.

Fabien
comp615's picture
Joined: 02/07/2010
Posts: 295
Re: How to hide and show a CKEditor in Firefox?
Yuppers. Or if you need it fixed now you can apply this patch:
http://dev.ckeditor.com/raw-attachment/ ... 56_2.patch