tiptap/packages
BrianHung 90f0498265
Change registerPlugin to add plugin after Extensions plugins
This commit changes `registerPlugin` by 1. adding the new plugin to `this.plugins` and 2. updating `this.plugins` within `this.state.plugins` by splicing with the new `this.plugins` length. Previously, new plugins were simply added to the end of `this.state.plugins` and were not appended to `this.plugins`. 

By placing new plugins at this new location within `this.state.plugins`, we prioritize registered plugins over default ProseMirror plugins such as `keymap(baseKeymap)`. This will allow new plugins to have precedence over props such as `handleKeyDown`.
2020-04-08 03:17:59 -07:00
..
tiptap Change registerPlugin to add plugin after Extensions plugins 2020-04-08 03:17:59 -07:00
tiptap-commands Publish 2020-04-02 09:23:34 +02:00
tiptap-extensions Publish 2020-04-02 09:23:34 +02:00
tiptap-utils Publish 2020-04-01 20:46:33 +02:00