Creating a custom widget that uses Tinymce
-
I am trying to create a custom widget that uses tinymce for a textarea in the widget. I’m using the new widget class in 2.8. I’ve downloaded tinymce and included it in my plugin folder (trying to use the tinymce bundled with wordpress – it wouldn’t let me use the “simple” theme otherwise). I’m including the javascript on the widgets page by creating a function that calls pulls in the javascript and calls the tinymce init and then hooking it into the widgets page with:
add_action(’admin_print_scripts-widgets.php’, ‘mytinymcecallfunction’);When I pull up the widget – the tinymce displays on the textarea the way it’s supposed to. The problem comes when I try to SAVE the widget…
The changes aren’t saved – and the textarea reverts back to it’s “non-tinymce” view.
Strangely, changes I make in the textarea AFTER it’s reverted back to the non-tinymce view ARE saved… it just doesn’t seem to want to save it with the tinymce “on”…
Any thoughts?
- The topic ‘Creating a custom widget that uses Tinymce’ is closed to new replies.