diff --git a/packages/ckeditor5-build-trilium/package.json b/packages/ckeditor5-build-trilium/package.json index db67fb9e5..60eb6247c 100644 --- a/packages/ckeditor5-build-trilium/package.json +++ b/packages/ckeditor5-build-trilium/package.json @@ -50,7 +50,9 @@ "@ckeditor/ckeditor5-paste-from-office": "43.2.0", "@ckeditor/ckeditor5-table": "43.2.0", "@ckeditor/ckeditor5-typing": "43.2.0", - "@triliumnext/ckeditor5-math": "43.2.0-hotfix1" + "@ckeditor/ckeditor5-utils": "43.2.0", + "@triliumnext/ckeditor5-math": "43.2.0-hotfix1", + "@triliumnext/ckeditor5-footnotes": "0.0.4-hotfix10" }, "devDependencies": { "@ckeditor/ckeditor5-core": "43.2.0", @@ -75,4 +77,4 @@ "build": "webpack --mode production", "postbuild": "tsc -p ./tsconfig.types.json" } -} \ No newline at end of file +} diff --git a/packages/ckeditor5-build-trilium/src/ckeditor_balloon.ts b/packages/ckeditor5-build-trilium/src/ckeditor_balloon.ts index b5a2eeeed..5f5622498 100644 --- a/packages/ckeditor5-build-trilium/src/ckeditor_balloon.ts +++ b/packages/ckeditor5-build-trilium/src/ckeditor_balloon.ts @@ -44,6 +44,7 @@ export default class BalloonEditor extends BalloonEditorBase { 'bulletedList', 'numberedList', 'todoList', '|', 'blockQuote', 'codeBlock', 'insertTable', + 'footnote', { label: "Insert", icon: "plus", diff --git a/packages/ckeditor5-build-trilium/src/ckeditor_decoupled.ts b/packages/ckeditor5-build-trilium/src/ckeditor_decoupled.ts index 8a658a525..2eb402085 100644 --- a/packages/ckeditor5-build-trilium/src/ckeditor_decoupled.ts +++ b/packages/ckeditor5-build-trilium/src/ckeditor_decoupled.ts @@ -46,6 +46,7 @@ export default class DecoupledEditor extends DecoupledEditorBase { 'blockQuote', 'insertTable', 'codeBlock', + 'footnote', { label: "Insert", icon: "plus", diff --git a/packages/ckeditor5-build-trilium/src/config.ts b/packages/ckeditor5-build-trilium/src/config.ts index 5010f95ec..84731d3c8 100644 --- a/packages/ckeditor5-build-trilium/src/config.ts +++ b/packages/ckeditor5-build-trilium/src/config.ts @@ -55,9 +55,6 @@ import { GeneralHtmlSupport } from "@ckeditor/ckeditor5-html-support"; 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'; - import MentionCustomization from './mention_customization'; import UploadimagePlugin from './uploadimage'; import InternalLinkPlugin from './internallink'; @@ -70,6 +67,13 @@ import removeFormatLinksPlugin from './remove_format_links'; import {SpecialCharactersEmoji} from "./special_characters_emoji"; +// External plugins +import Math from '@triliumnext/ckeditor5-math/src/math'; +import AutoformatMath from '@triliumnext/ckeditor5-math/src/autoformatmath'; + +import '@triliumnext/ckeditor5-footnotes/src/footnote.css'; +import { Footnotes } from '@triliumnext/ckeditor5-footnotes'; + export const COMMON_PLUGINS = [ // essentials package expanded to allow selectively disable Enter and ShiftEnter Clipboard, Enter, SelectAll, ShiftEnter, Typing, Undo, @@ -133,10 +137,13 @@ export const COMMON_PLUGINS = [ ReferenceLink, indentBlockShortcutPlugin, removeFormatLinksPlugin, + PageBreak, + GeneralHtmlSupport, + + // External plugins Math, AutoformatMath, - PageBreak, - GeneralHtmlSupport + Footnotes ]; export const COMMON_SETTINGS = {