cclaerhout
Well-known member
It would be nice to create an official oninit function for TinyMCE
For example:
For example:
PHP:
function mceIsReady() {
//insert a hook here or include a template to manage TinyMCE once it has been loaded in the dom
}
tinyMCE.dom.Event._pageInit(window); // for ajax loads
tinyMCE.init(
{
<xen:hook name="editor_tinymce_init" params="{xen:array 'editorId={$editorId}'}">
mode: 'exact',
elements: $editor.attr('id'),
plugins: plugins,
cleanup: false,
theme: 'xenforo',
oninit : mceIsReady,
Upvote
1