mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
chore(ckeditor5/plugins): integrate markdown inline
This commit is contained in:
parent
2f09411c0d
commit
a44eaeaf10
@ -17,6 +17,7 @@ declare global {
|
||||
getHeaders(): Promise<Record<string, string>>;
|
||||
getReferenceLinkTitle(href: string): Promise<string>;
|
||||
getReferenceLinkTitleSync(href: string): string;
|
||||
importMarkdownInline(): void;
|
||||
}
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 282 B |
@ -9,6 +9,7 @@ import ReferenceLink from "./plugins/referencelink.js";
|
||||
import RemoveFormatLinksPlugin from "./plugins/remove_format_links.js";
|
||||
import SpecialCharactersEmojiPlugin from "./plugins/special_characters_emoji.js";
|
||||
import IndentBlockShortcutPlugin from "./plugins/indent_block_shortcut.js";
|
||||
import MarkdownImportPlugin from "./plugins/markdownimport.js";
|
||||
|
||||
const TRILIUM_PLUGINS: typeof Plugin[] = [
|
||||
CutToNotePlugin,
|
||||
@ -19,7 +20,8 @@ const TRILIUM_PLUGINS: typeof Plugin[] = [
|
||||
InternalLinkPlugin,
|
||||
RemoveFormatLinksPlugin,
|
||||
SpecialCharactersEmojiPlugin,
|
||||
IndentBlockShortcutPlugin
|
||||
IndentBlockShortcutPlugin,
|
||||
MarkdownImportPlugin
|
||||
];
|
||||
|
||||
export const COMMON_PLUGINS: typeof Plugin[] = [
|
||||
@ -77,7 +79,6 @@ export const COMMON_PLUGINS: typeof Plugin[] = [
|
||||
SpecialCharactersEssentials,
|
||||
FindAndReplace,
|
||||
Mention,
|
||||
// MarkdownImportPlugin,
|
||||
// MentionCustomization,
|
||||
// IncludeNote,
|
||||
PageBreak,
|
||||
|
@ -1,6 +1,5 @@
|
||||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
|
||||
import markdownIcon from './icons/markdown-mark.svg';
|
||||
import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
|
||||
import { ButtonView, Plugin } from 'ckeditor5';
|
||||
import markdownIcon from '../icons/markdown-mark.svg?raw';
|
||||
|
||||
export default class MarkdownImportPlugin extends Plugin {
|
||||
init() {
|
Loading…
x
Reference in New Issue
Block a user