Browse Source

Update index.js

add-plugins
Pranav Raj S 4 years ago committed by GitHub
parent
commit
531ffdb4b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/index.js

2
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(

Loading…
Cancel
Save