I try to use jscomponent.callfunction() but it is not working
Code in controller
editor.callFunction(“showNotification”,“test”);
Code in javascript file
tinyMCE = function () {
var connector = this;
tinymce.init({
selector: 'textarea',
plugins: 'a11ychecker advcode casechange formatpainter linkchecker autolink lists checklist media mediaembed pageembed permanentpen powerpaste table advtable tinycomments tinymcespellchecker',
toolbar: 'a11ycheck addcomment showcomments casechange checklist code formatpainter pageembed permanentpen table',
toolbar_mode: 'floating',
tinycomments_mode: 'embedded',
tinycomments_author: 'Author name',
});
connector.showNotification = function (text) {
window.alert(text);
};
};