mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-14 04:52:28 +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 BalloonEditor from "./ckeditor_balloon";
|
||||||
import DecoupledEditor from "./ckeditor_decoupled";
|
import DecoupledEditor from "./ckeditor_decoupled";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
BalloonEditor,
|
BalloonEditor,
|
||||||
DecoupledEditor
|
DecoupledEditor,
|
||||||
|
EditorWatchdog
|
||||||
}
|
}
|
||||||
|
@ -78,10 +78,6 @@ import removeFormatLinksPlugin from './remove_format_links';
|
|||||||
import '../theme/theme.css';
|
import '../theme/theme.css';
|
||||||
import {SpecialCharactersEmoji} from "./special_characters_emoji";
|
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 {
|
export default class BalloonEditor extends BalloonEditorBase {
|
||||||
public static override builtinPlugins = [
|
public static override builtinPlugins = [
|
||||||
// essentials package expanded to allow selectively disable Enter and ShiftEnter
|
// 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 '../theme/theme.css';
|
||||||
import {SpecialCharactersEmoji} from "./special_characters_emoji";
|
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 {
|
export default class DecoupledEditor extends DecoupledEditorBase {
|
||||||
public static override builtinPlugins = [
|
public static override builtinPlugins = [
|
||||||
// essentials package expanded to allow selectively disable Enter and ShiftEnter
|
// essentials package expanded to allow selectively disable Enter and ShiftEnter
|
||||||
|
Loading…
x
Reference in New Issue
Block a user