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() {