mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 18:39:22 +08:00
Use better method to expose watchdog
This commit is contained in:
parent
a7bb9219bf
commit
db8ab2bc72
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user