I am trying to add a rich text editor to a widget and am using CKEditor ( http://ckeditor.com/download ) with a simple toolbar.
Everything works fine until I try to save. When clicking on “save” the textarea (and texteditor) vanish and it fails to save.
Removing the texteditor allows the textarea to work and save normally.
You can see the widgets code here: http://pastebin.com/C7VbxBSG
and of course I did add the required wp_register_script
and wp_enqueue_script
I use the same code to add the text editor to text areas n meta boxes for pages and posts and it works fine. It’s just on the widget the problem comes up something to do with the way the widget saves: via javascript which is beyond my skills at present
I had the same problem when adding tinymce to widgets a few months ago.
Add all your javascript code with enqueue script, instead of adding it in each widget instance.
Here is my tinymce implementation: http://gist.github.com/600616
You may want to try the Black Studio TinyMCE Widget plugin, which adds a WYSIWYG text widget based on the standard TinyMCE WordPress editor (not CKEditor).