mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-13 20:42:29 +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',
|
'includeNote',
|
||||||
'|',
|
'|',
|
||||||
'math',
|
'math',
|
||||||
'horizontalLine'
|
'horizontalLine',
|
||||||
|
'pageBreak'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
'|',
|
'|',
|
||||||
|
@ -57,7 +57,8 @@ export default class DecoupledEditor extends DecoupledEditorBase {
|
|||||||
'|',
|
'|',
|
||||||
'specialCharacters',
|
'specialCharacters',
|
||||||
'math',
|
'math',
|
||||||
'horizontalLine'
|
'horizontalLine',
|
||||||
|
'pageBreak'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
'|',
|
'|',
|
||||||
|
@ -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 = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user