From b996938d952c7b3c120906ece44423567d546d53 Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Sun, 24 Jan 2021 13:17:20 +0530 Subject: [PATCH] Update index.js --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 3e2751d..9b2e90f 100644 --- a/src/index.js +++ b/src/index.js @@ -51,13 +51,13 @@ export { buildMenuItems, buildKeymap, buildInputRules }; // Can be used to override the menu content. export function wootWriterSetup(options) { let plugins = [ + ...(options.plugins || []), buildInputRules(options.schema), keymap(buildKeymap(options.schema, options.mapKeys)), keymap(baseKeymap), dropCursor(), gapCursor(), Placeholder(options.placeholder), - ...(options.plugins || []), ]; if (options.menuBar !== false) plugins.push(