Recently i am playing with Tinymce in Umbraco 9. I am trying to install a custom plugin that is called "Lance" I am struggling to add some javascript functions to the init method for Tinymce. Because we now have to do it in the appsettings.json
So i have a function like below:
setup: function(editor) {
editorStates[id] = editorStates[id] || new EditorState(editor);
editor.on("lance::init", function (event) {
var lance = event.lance,
ann = lance.getAnnotations();
createUI(ann);
if (focus) {
setTimeout(function() {
onEditorSelected(id);
}, 1);
}
$(".lance-version").html(event.lance.version);
console.log(event);
});
}
TinyMce Init with javascript functions
Hi All,
Recently i am playing with Tinymce in Umbraco 9. I am trying to install a custom plugin that is called "Lance" I am struggling to add some javascript functions to the init method for Tinymce. Because we now have to do it in the appsettings.json
So i have a function like below:
How should we set it correctly in Umbraco 9
is working on a reply...