FCKEditor and the jQuery UI Dialog


/ Published in: jQuery
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. $(function(){
  2. $('#dialog').dialog({
  3. autoOpen:false,
  4. close:function(){
  5. var editor = $('#dialog textarea').ckeditorGet();
  6. editor.destroy();
  7. }
  8. });
  9. });

URL: http://forum.jquery.com/topic/ckeditor-in-ui-dialog

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.