feat(editor): enable PageBreak plugin

This commit is contained in:
Elian Doran 2024-11-28 20:33:12 +02:00
parent 1e0f5312e8
commit 64dfbd29ee
3 changed files with 7 additions and 3 deletions

View File

@ -51,7 +51,8 @@ export default class BalloonEditor extends BalloonEditorBase {
'includeNote', 'includeNote',
'|', '|',
'math', 'math',
'horizontalLine' 'horizontalLine',
'pageBreak'
] ]
}, },
'|', '|',

View File

@ -57,7 +57,8 @@ export default class DecoupledEditor extends DecoupledEditorBase {
'|', '|',
'specialCharacters', 'specialCharacters',
'math', 'math',
'horizontalLine' 'horizontalLine',
'pageBreak'
] ]
}, },
'|', '|',

View File

@ -52,6 +52,7 @@ import { RemoveFormat } from '@ckeditor/ckeditor5-remove-format';
import { EditorWatchdog } from '@ckeditor/ckeditor5-watchdog'; import { EditorWatchdog } from '@ckeditor/ckeditor5-watchdog';
import { SpecialCharacters, SpecialCharactersEssentials } from '@ckeditor/ckeditor5-special-characters'; import { SpecialCharacters, SpecialCharactersEssentials } from '@ckeditor/ckeditor5-special-characters';
import Uploadfileplugin from "../../ckeditor5-file-upload/uploadfileplugin"; import Uploadfileplugin from "../../ckeditor5-file-upload/uploadfileplugin";
import { PageBreak } from '@ckeditor/ckeditor5-page-break';
import Math from '@triliumnext/ckeditor5-math/src/math'; import Math from '@triliumnext/ckeditor5-math/src/math';
import AutoformatMath from '@triliumnext/ckeditor5-math/src/autoformatmath'; import AutoformatMath from '@triliumnext/ckeditor5-math/src/autoformatmath';
@ -132,7 +133,8 @@ export const COMMON_PLUGINS = [
indentBlockShortcutPlugin, indentBlockShortcutPlugin,
removeFormatLinksPlugin, removeFormatLinksPlugin,
Math, Math,
AutoformatMath AutoformatMath,
PageBreak
]; ];
export const COMMON_SETTINGS = { export const COMMON_SETTINGS = {