|
|
|
|
@ -12,6 +12,7 @@ import appContext from "../../components/app_context.js";
|
|
|
|
|
import dialogService from "../../services/dialog.js";
|
|
|
|
|
import { initSyntaxHighlighting } from "./ckeditor/syntax_highlight.js";
|
|
|
|
|
import options from "../../services/options.js";
|
|
|
|
|
import toast from "../../services/toast.js";
|
|
|
|
|
|
|
|
|
|
const ENABLE_INSPECTOR = false;
|
|
|
|
|
|
|
|
|
|
@ -194,6 +195,12 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const notificationsPlugin = editor.plugins.get("Notification");
|
|
|
|
|
notificationsPlugin.on("show:warning", (evt, data) => {
|
|
|
|
|
toast.showErrorTitleAndMessage(data.title, data.message.message);
|
|
|
|
|
evt.stop();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
await initSyntaxHighlighting(editor);
|
|
|
|
|
|
|
|
|
|
if (isClassicEditor) {
|
|
|
|
|
|