mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
fix(attributes): reference links not working
This commit is contained in:
parent
ff89ab646c
commit
b7d118a12c
@ -24,22 +24,26 @@ import "@triliumnext/ckeditor5-admonition/index.css";
|
|||||||
import "@triliumnext/ckeditor5-footnotes/index.css";
|
import "@triliumnext/ckeditor5-footnotes/index.css";
|
||||||
import "@triliumnext/ckeditor5-math/index.css";
|
import "@triliumnext/ckeditor5-math/index.css";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Plugins that are specific to Trilium and not part of the CKEditor 5 core, included in both text editors but not in the attribute editor.
|
||||||
|
*/
|
||||||
const TRILIUM_PLUGINS: typeof Plugin[] = [
|
const TRILIUM_PLUGINS: typeof Plugin[] = [
|
||||||
CutToNotePlugin,
|
CutToNotePlugin,
|
||||||
ItalicAsEmPlugin,
|
ItalicAsEmPlugin,
|
||||||
StrikethroughAsDel,
|
StrikethroughAsDel,
|
||||||
ReferenceLink,
|
|
||||||
UploadimagePlugin,
|
UploadimagePlugin,
|
||||||
InternalLinkPlugin,
|
InternalLinkPlugin,
|
||||||
RemoveFormatLinksPlugin,
|
RemoveFormatLinksPlugin,
|
||||||
IndentBlockShortcutPlugin,
|
IndentBlockShortcutPlugin,
|
||||||
MarkdownImportPlugin,
|
MarkdownImportPlugin,
|
||||||
MentionCustomization,
|
|
||||||
IncludeNote,
|
IncludeNote,
|
||||||
Uploadfileplugin,
|
Uploadfileplugin,
|
||||||
SyntaxHighlighting
|
SyntaxHighlighting
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* External plugins that are not part of the CKEditor 5 core and not part of Trilium, included in both text editors but not in the attribute editor.
|
||||||
|
*/
|
||||||
const EXTERNAL_PLUGINS: typeof Plugin[] = [
|
const EXTERNAL_PLUGINS: typeof Plugin[] = [
|
||||||
Kbd,
|
Kbd,
|
||||||
Mermaid,
|
Mermaid,
|
||||||
@ -49,13 +53,23 @@ const EXTERNAL_PLUGINS: typeof Plugin[] = [
|
|||||||
AutoformatMath
|
AutoformatMath
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The minimal set of plugins required for the editor to work. This is used both in normal text editors (floating or fixed toolbar) and in the attribute editor.
|
||||||
|
*/
|
||||||
export const CORE_PLUGINS: typeof Plugin[] = [
|
export const CORE_PLUGINS: typeof Plugin[] = [
|
||||||
Clipboard, Enter, SelectAll,
|
Clipboard, Enter, SelectAll,
|
||||||
ShiftEnter, Typing, Undo,
|
ShiftEnter, Typing, Undo,
|
||||||
Paragraph,
|
Paragraph,
|
||||||
Mention
|
Mention,
|
||||||
|
|
||||||
|
// Trilium plugins
|
||||||
|
MentionCustomization,
|
||||||
|
ReferenceLink
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The set of plugins that are required for the editor to work. This is used in normal text editors (floating or fixed toolbar) but not in the attribute editor.
|
||||||
|
*/
|
||||||
export const COMMON_PLUGINS: typeof Plugin[] = [
|
export const COMMON_PLUGINS: typeof Plugin[] = [
|
||||||
...CORE_PLUGINS,
|
...CORE_PLUGINS,
|
||||||
...TRILIUM_PLUGINS,
|
...TRILIUM_PLUGINS,
|
||||||
@ -116,9 +130,10 @@ export const COMMON_PLUGINS: typeof Plugin[] = [
|
|||||||
Emoji
|
Emoji
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The set of plugins specific to the popup editor (floating toolbar mode), and not the fixed toolbar mode.
|
||||||
|
*/
|
||||||
export const POPUP_EDITOR_PLUGINS: typeof Plugin[] = [
|
export const POPUP_EDITOR_PLUGINS: typeof Plugin[] = [
|
||||||
...COMMON_PLUGINS,
|
...COMMON_PLUGINS,
|
||||||
BlockToolbar
|
BlockToolbar
|
||||||
];
|
];
|
||||||
|
|
||||||
export const COMMON_SETTINGS = { };
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user