From c40feb03eaf10bb7681f2dde324f98b5e833d063 Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Sun, 24 Jan 2021 20:24:55 +0530 Subject: [PATCH] chore: Add support to pass plugins (#1) --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index ab2380f..9b2e90f 100644 --- a/src/index.js +++ b/src/index.js @@ -51,6 +51,7 @@ 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),