From 2afdf9ba49b47da9d7ffa41297f1cc8515679956 Mon Sep 17 00:00:00 2001 From: jinwoo-lee Date: Sat, 23 Apr 2022 14:35:34 +0900 Subject: [PATCH] feat: Reverse the keymap sequence for the plugin. --- apps/editor/src/markdown/mdEditor.ts | 4 ++-- apps/editor/src/wysiwyg/wwEditor.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/editor/src/markdown/mdEditor.ts b/apps/editor/src/markdown/mdEditor.ts index 916b5443c6..66cc497ec0 100644 --- a/apps/editor/src/markdown/mdEditor.ts +++ b/apps/editor/src/markdown/mdEditor.ts @@ -166,12 +166,12 @@ export default class MdEditor extends EditorBase { } createPlugins() { - return this.defaultPlugins.concat([ + return [ syntaxHighlight(this.context), previewHighlight(this.context), smartTask(this.context), ...this.createPluginProps(), - ]); + ].concat(this.defaultPlugins); } createView() { diff --git a/apps/editor/src/wysiwyg/wwEditor.ts b/apps/editor/src/wysiwyg/wwEditor.ts index 8383d6342c..482ef411a8 100644 --- a/apps/editor/src/wysiwyg/wwEditor.ts +++ b/apps/editor/src/wysiwyg/wwEditor.ts @@ -107,13 +107,13 @@ export default class WysiwygEditor extends EditorBase { } createPlugins() { - return this.defaultPlugins.concat([ + return [ tableSelection(), tableContextMenu(this.eventEmitter), task(), toolbarStateHighlight(this.eventEmitter), ...this.createPluginProps(), - ]); + ].concat(this.defaultPlugins); } createPluginNodeViews() {