mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(ckeditor5/plugins): integrate internal link
This commit is contained in:
parent
daa1df5a24
commit
a54d8ed811
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
@ -4,12 +4,14 @@ import CutToNotePlugin from "./plugins/cuttonote.js";
|
|||||||
import UploadimagePlugin from "./plugins/uploadimage.js";
|
import UploadimagePlugin from "./plugins/uploadimage.js";
|
||||||
import ItalicAsEmPlugin from "./plugins/italic_as_em.js";
|
import ItalicAsEmPlugin from "./plugins/italic_as_em.js";
|
||||||
import StrikethroughAsDel from "./plugins/strikethrough_as_del.js";
|
import StrikethroughAsDel from "./plugins/strikethrough_as_del.js";
|
||||||
|
import InternalLinkPlugin from "./plugins/internallink.js";
|
||||||
|
|
||||||
const TRILIUM_PLUGINS: typeof Plugin[] = [
|
const TRILIUM_PLUGINS: typeof Plugin[] = [
|
||||||
CutToNotePlugin,
|
CutToNotePlugin,
|
||||||
ItalicAsEmPlugin,
|
ItalicAsEmPlugin,
|
||||||
StrikethroughAsDel,
|
StrikethroughAsDel,
|
||||||
UploadimagePlugin
|
UploadimagePlugin,
|
||||||
|
InternalLinkPlugin
|
||||||
];
|
];
|
||||||
|
|
||||||
export const COMMON_PLUGINS: typeof Plugin[] = [
|
export const COMMON_PLUGINS: typeof Plugin[] = [
|
||||||
@ -66,7 +68,6 @@ export const COMMON_PLUGINS: typeof Plugin[] = [
|
|||||||
// SpecialCharactersEmoji,
|
// SpecialCharactersEmoji,
|
||||||
FindAndReplace,
|
FindAndReplace,
|
||||||
Mention,
|
Mention,
|
||||||
// InternalLinkPlugin,
|
|
||||||
// MarkdownImportPlugin,
|
// MarkdownImportPlugin,
|
||||||
// MentionCustomization,
|
// MentionCustomization,
|
||||||
// IncludeNote,
|
// IncludeNote,
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
|
import { ButtonView, Plugin } from 'ckeditor5';
|
||||||
import internalLinkIcon from './icons/trilium.svg';
|
import internalLinkIcon from '../icons/trilium.svg?raw';
|
||||||
import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
|
|
||||||
|
|
||||||
export default class InternalLinkPlugin extends Plugin {
|
export default class InternalLinkPlugin extends Plugin {
|
||||||
init() {
|
init() {
|
Loading…
x
Reference in New Issue
Block a user