mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +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>>;
|
getHeaders(): Promise<Record<string, string>>;
|
||||||
getReferenceLinkTitle(href: string): Promise<string>;
|
getReferenceLinkTitle(href: string): Promise<string>;
|
||||||
getReferenceLinkTitleSync(href: string): 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 RemoveFormatLinksPlugin from "./plugins/remove_format_links.js";
|
||||||
import SpecialCharactersEmojiPlugin from "./plugins/special_characters_emoji.js";
|
import SpecialCharactersEmojiPlugin from "./plugins/special_characters_emoji.js";
|
||||||
import IndentBlockShortcutPlugin from "./plugins/indent_block_shortcut.js";
|
import IndentBlockShortcutPlugin from "./plugins/indent_block_shortcut.js";
|
||||||
|
import MarkdownImportPlugin from "./plugins/markdownimport.js";
|
||||||
|
|
||||||
const TRILIUM_PLUGINS: typeof Plugin[] = [
|
const TRILIUM_PLUGINS: typeof Plugin[] = [
|
||||||
CutToNotePlugin,
|
CutToNotePlugin,
|
||||||
@ -19,7 +20,8 @@ const TRILIUM_PLUGINS: typeof Plugin[] = [
|
|||||||
InternalLinkPlugin,
|
InternalLinkPlugin,
|
||||||
RemoveFormatLinksPlugin,
|
RemoveFormatLinksPlugin,
|
||||||
SpecialCharactersEmojiPlugin,
|
SpecialCharactersEmojiPlugin,
|
||||||
IndentBlockShortcutPlugin
|
IndentBlockShortcutPlugin,
|
||||||
|
MarkdownImportPlugin
|
||||||
];
|
];
|
||||||
|
|
||||||
export const COMMON_PLUGINS: typeof Plugin[] = [
|
export const COMMON_PLUGINS: typeof Plugin[] = [
|
||||||
@ -77,7 +79,6 @@ export const COMMON_PLUGINS: typeof Plugin[] = [
|
|||||||
SpecialCharactersEssentials,
|
SpecialCharactersEssentials,
|
||||||
FindAndReplace,
|
FindAndReplace,
|
||||||
Mention,
|
Mention,
|
||||||
// MarkdownImportPlugin,
|
|
||||||
// MentionCustomization,
|
// MentionCustomization,
|
||||||
// IncludeNote,
|
// IncludeNote,
|
||||||
PageBreak,
|
PageBreak,
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
|
import { ButtonView, Plugin } from 'ckeditor5';
|
||||||
import markdownIcon from './icons/markdown-mark.svg';
|
import markdownIcon from '../icons/markdown-mark.svg?raw';
|
||||||
import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
|
|
||||||
|
|
||||||
export default class MarkdownImportPlugin extends Plugin {
|
export default class MarkdownImportPlugin extends Plugin {
|
||||||
init() {
|
init() {
|
Loading…
x
Reference in New Issue
Block a user