mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
refactor(ckeditor5): class name
This commit is contained in:
parent
c4c7321f60
commit
a4a5e0bdf0
@ -7,7 +7,7 @@ export default class MarkdownImportPlugin extends Plugin {
|
|||||||
init() {
|
init() {
|
||||||
const editor = this.editor;
|
const editor = this.editor;
|
||||||
|
|
||||||
editor.commands.add(COMMAND_NAME, new ImportMarkdownInline(editor));
|
editor.commands.add(COMMAND_NAME, new ImportMarkdownCommand(editor));
|
||||||
|
|
||||||
editor.ui.componentFactory.add( 'markdownImport', locale => {
|
editor.ui.componentFactory.add( 'markdownImport', locale => {
|
||||||
const view = new ButtonView( locale );
|
const view = new ButtonView( locale );
|
||||||
@ -28,7 +28,7 @@ export default class MarkdownImportPlugin extends Plugin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class ImportMarkdownInline extends Command {
|
class ImportMarkdownCommand extends Command {
|
||||||
|
|
||||||
execute() {
|
execute() {
|
||||||
glob.importMarkdownInline();
|
glob.importMarkdownInline();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user