mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 18:39:22 +08:00
feat(editor): enable PageBreak plugin
This commit is contained in:
parent
1e0f5312e8
commit
64dfbd29ee
@ -51,7 +51,8 @@ export default class BalloonEditor extends BalloonEditorBase {
|
||||
'includeNote',
|
||||
'|',
|
||||
'math',
|
||||
'horizontalLine'
|
||||
'horizontalLine',
|
||||
'pageBreak'
|
||||
]
|
||||
},
|
||||
'|',
|
||||
|
@ -57,7 +57,8 @@ export default class DecoupledEditor extends DecoupledEditorBase {
|
||||
'|',
|
||||
'specialCharacters',
|
||||
'math',
|
||||
'horizontalLine'
|
||||
'horizontalLine',
|
||||
'pageBreak'
|
||||
]
|
||||
},
|
||||
'|',
|
||||
|
@ -52,6 +52,7 @@ import { RemoveFormat } from '@ckeditor/ckeditor5-remove-format';
|
||||
import { EditorWatchdog } from '@ckeditor/ckeditor5-watchdog';
|
||||
import { SpecialCharacters, SpecialCharactersEssentials } from '@ckeditor/ckeditor5-special-characters';
|
||||
import Uploadfileplugin from "../../ckeditor5-file-upload/uploadfileplugin";
|
||||
import { PageBreak } from '@ckeditor/ckeditor5-page-break';
|
||||
|
||||
import Math from '@triliumnext/ckeditor5-math/src/math';
|
||||
import AutoformatMath from '@triliumnext/ckeditor5-math/src/autoformatmath';
|
||||
@ -132,7 +133,8 @@ export const COMMON_PLUGINS = [
|
||||
indentBlockShortcutPlugin,
|
||||
removeFormatLinksPlugin,
|
||||
Math,
|
||||
AutoformatMath
|
||||
AutoformatMath,
|
||||
PageBreak
|
||||
];
|
||||
|
||||
export const COMMON_SETTINGS = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user