When I execute below code lines it throws exception in the console on executing (new FroalaEditor).
Code:
$.fn.validateFroalaChange = function () {
var $obj = $(this);
new FroalaEditor($obj, {
events: {
'contentChanged': function () {
console.log("changed!!");
}
}
});
};
Error:
froala_editor.pkgd.min.js:7 Uncaught TypeError: Cannot use 'in' operator to search for 'defaultView' in undefined
at new E.Bootstrap (froala_editor.pkgd.min.js:7)
at new $e (froala_editor.pkgd.min.js:7)