Closed dmitrizzle closed 7 years ago
isubasti pointed out (on Slack) that function signature has changed, so data
parameter needs to be removed. I've done that on my plugins, however slate-auto-replace
and slate-paste-linkify
still yet to do this.
Hey @dmitrizzle, very true. I released the new version of slate-react@0.6.0
but didn't have time to update my plugins until now. Just released new versions of each!
It's a bug.
What's the current behavior?
Plugins example throws error:
I believe this is also related to the issues I'm having in my own plugin as well.This code:
Returns
undefined
. The above is used to check if an image block is in focus, like so:if (state.focusBlock.type !== "image") return
Also:
change.toggleMark(type)
Now throwsTypeError: change.toggleMark is not a function
- this function is a straight copy of Slate Plugins walkthrough - which I suspect is broken for the same reason the example above is.This shouldn't happen.