refactor(ckeditor5): class name

This commit is contained in:
Elian Doran 2025-06-16 23:52:16 +03:00
parent c4c7321f60
commit a4a5e0bdf0
No known key found for this signature in database

View File

@ -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();