Use better method to expose watchdog

This commit is contained in:
Elian Doran 2024-11-09 14:12:58 +02:00
parent a7bb9219bf
commit db8ab2bc72
3 changed files with 3 additions and 9 deletions

View File

@ -1,7 +1,9 @@
import { EditorWatchdog } from "@ckeditor/ckeditor5-watchdog";
import BalloonEditor from "./ckeditor_balloon";
import DecoupledEditor from "./ckeditor_decoupled";
export default {
BalloonEditor,
DecoupledEditor
DecoupledEditor,
EditorWatchdog
}

View File

@ -78,10 +78,6 @@ import removeFormatLinksPlugin from './remove_format_links';
import '../theme/theme.css';
import {SpecialCharactersEmoji} from "./special_characters_emoji";
// expose so that Trilium can use it
// eslint-disable-next-line no-undef
(window as any).EditorWatchdog = EditorWatchdog;
export default class BalloonEditor extends BalloonEditorBase {
public static override builtinPlugins = [
// essentials package expanded to allow selectively disable Enter and ShiftEnter

View File

@ -77,10 +77,6 @@ import removeFormatLinksPlugin from './remove_format_links';
import '../theme/theme.css';
import {SpecialCharactersEmoji} from "./special_characters_emoji";
// expose so that Trilium can use it
// eslint-disable-next-line no-undef
(window as any).EditorWatchdog = EditorWatchdog;
export default class DecoupledEditor extends DecoupledEditorBase {
public static override builtinPlugins = [
// essentials package expanded to allow selectively disable Enter and ShiftEnter