Adding a rich text editor to a widget – specifically CKEditor

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.

Read More

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

Related posts

Leave a Reply

2 comments