nib-edit / nib

Wysiwyg / Text editor components built using React and Prosemirror
https://nib-edit.github.io/nib/
GNU General Public License v3.0
228 stars 26 forks source link

Adding options make module crash "inline block link list image history" #76

Closed split750 closed 4 years ago

split750 commented 4 years ago

<Editor config={{ plugins: { options: "inline block link list image history", image: { uploadCallback } }, toolbar: { options: "top", top: { block: { grouped }, options: "inline block link list image history" /* link */ } } }} onChange={this.handleChange2} defaultValue={defaultValue} styleConfig={{ editor: () => ({ height: "400px" }) }} />

image

split750 commented 4 years ago

Solved by not adding history in the plugin object, only adding it to the toolbar object.
See config here: https://github.com/nib-edit/Nib/blob/master/packages/core/src/config/editor.js

jpuri commented 4 years ago

👍 history is implicitly always added to plugins. I will anyways fix this issue.