I have an Umbraco site which makes use of rich text editors in the backend and I'm attempting to 'hook' in to the TinyMCE onchange_callback.
I've been fumbling around hoping to come across something and I found the tinyMCEConfig.config file which allows you to set custom settings from the tinyMCE configuration settings - http://www.tinymce.com/wiki.php/Configuration3x
I dropped in a 'height' setting of 1500 as a test and this works perfectly. However, I'm also trying to use both oninit and the onchange_callback settings to call a function so that I can hopefully grab the content of the editor.
Using Function in TinyMCE CustomConfig
I have an Umbraco site which makes use of rich text editors in the backend and I'm attempting to 'hook' in to the TinyMCE onchange_callback.
I've been fumbling around hoping to come across something and I found the tinyMCEConfig.config file which allows you to set custom settings from the tinyMCE configuration settings - http://www.tinymce.com/wiki.php/Configuration3x
I dropped in a 'height' setting of 1500 as a test and this works perfectly. However, I'm also trying to use both
oninit
and theonchange_callback
settings to call a function so that I can hopefully grab the content of the editor.I have a test function set up in a file which I'm including in the backend through a custom package.manifest file:
The javascript file/function:
All pretty simple but I get an error for the onit setting (thrown from tinyMCE):
Where am I going wrong here?
is working on a reply...