Closed esseti closed 1 month ago
It looks like the init_instance_callback
callback is not supported. Use the setup
callback instead
do you have a working example for this case?
TINYMCE_DEFAULT_CONFIG = {
....
`"setup":"""function (editor) {
editor.on('blur', function (e) {
editor.save();
console.log('test')
});} """
}
The blur
event in order to trigger the focus event, it must be shifted to another input. In my projects clicking anywhere in the page does not trigger the event. As for the save
, I am not using it in my projects so I cannot test that functionality but I don't see any reason the editor.save()
not to work.
If the issue is solved, please mark this ticket as closed.
How is it possible to create some settings in oreder that the tinymce.init is as the following?
I tried with
but that is then a string, not a valid funciton and it's not triggered.
My scope is to trigger an action when onblur, since using tinymce the event on input, that is:
$(':input').on('change', function () ..
is not triggered..