Posted By

Meander365 on 09/27/10


jquery dialog ui FCKEditor

Versions (?)

FCKEditor and the jQuery UI Dialog

 / Published in: jQuery


When you load content into a jquery ui dialog box which contains a textarea element that you use FCKeditor on. The second time you open the dialog, FCKeditor fails to load.

You have to destroy it when you close the dialog box.

  1. $(function(){
  2. $('#dialog').dialog({
  3. autoOpen:false,
  4. close:function(){
  5. var editor = $('#dialog textarea').ckeditorGet();
  6. editor.destroy();
  7. }
  8. });
  9. });

Report this snippet  

You need to login to post a comment.