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): set up footnotes plugin
Elian Doranfea66629f62f
diff --git a/packages/ckeditor5-build-trilium/package.json b/packages/ckeditor5-build-trilium/package.jsonindex db67fb9e5a..60eb6247cc 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.tsindex b5a2eeeed7..5f5622498c 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.tsindex 8a658a525e..2eb4020850 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.tsindex 5010f95ec1..84731d3c80 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 ShiftEnterClipboard, Enter, SelectAll, ShiftEnter, Typing, Undo,@@ -133,10 +137,13 @@ export const COMMON_PLUGINS = [ReferenceLink,indentBlockShortcutPlugin,removeFormatLinksPlugin,+ PageBreak,+ GeneralHtmlSupport,++ // External pluginsMath,AutoformatMath,- PageBreak,- GeneralHtmlSupport+ Footnotes];export const COMMON_SETTINGS = {