Skip to content

What has been updated with version 1.0 and I see a lot of Commit #594

Closed Answered by zbeyens
meowWhat asked this question in Q&A
Discussion options

You must be logged in to vote

This is still a prerelease and the new docs and changelog will be written for v1 release, there is a lot of breaking changes.

Try out the sandbox

High level changes:

  • all plugins become hooks, that way we can use hooks in plugins like useMentionPlugin
  • no more Slate + EditablePlugins component, just use SlatePlugins which internally maps the plugins/options to props for Slate and Editable
    • id props for multiple editor support
    • plugins props
    • components props Record<PluginKey, FunctionComponent> so you can plug-in your design system, these will be merged into options
    • options props Record<PluginKey, SlatePluginOptions> which will be stored in editor.options so any plugin/function having editor…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@meowWhat
Comment options

Answer selected by zbeyens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
docs Improvements or additions to documentation
2 participants
Converted from issue

This discussion was converted from issue #593 on March 25, 2021 12:21.