Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(editor): enable PageBreak plugin
Elian Doran64dfbd29ee57
diff --git a/packages/ckeditor5-build-trilium/src/ckeditor_balloon.ts b/packages/ckeditor5-build-trilium/src/ckeditor_balloon.tsindex 77329d680f..98740c6fe2 100644--- a/packages/ckeditor5-build-trilium/src/ckeditor_balloon.ts+++ b/packages/ckeditor5-build-trilium/src/ckeditor_balloon.ts@@ -51,7 +51,8 @@ export default class BalloonEditor extends BalloonEditorBase {'includeNote','|','math',- 'horizontalLine'+ 'horizontalLine',+ 'pageBreak']},'|',diff --git a/packages/ckeditor5-build-trilium/src/ckeditor_decoupled.ts b/packages/ckeditor5-build-trilium/src/ckeditor_decoupled.tsindex 06044dbe9a..44ff949f02 100644--- a/packages/ckeditor5-build-trilium/src/ckeditor_decoupled.ts+++ b/packages/ckeditor5-build-trilium/src/ckeditor_decoupled.ts@@ -57,7 +57,8 @@ export default class DecoupledEditor extends DecoupledEditorBase {'|','specialCharacters','math',- 'horizontalLine'+ 'horizontalLine',+ 'pageBreak']},'|',diff --git a/packages/ckeditor5-build-trilium/src/config.ts b/packages/ckeditor5-build-trilium/src/config.tsindex 09cbaceb9f..25c7a92ae5 100644--- a/packages/ckeditor5-build-trilium/src/config.ts+++ b/packages/ckeditor5-build-trilium/src/config.ts@@ -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 = {