v0.59.0
·
10115 commits
to next
since this release
v0.59.0
Breaking Changes
- renamed
withDeserializeHtmltowithDeserializeHTML. - changed signature of
withDeserializeHTMLto({ plugins }) - renamed most of utils in
deserialize-html, including
htmlDeserializetodeserializeHTMLToDocumentFragment - renamed
htmlSerializetoserializeHTMLFromNodes. - removed
ToolbarCodeBlockin favor ofToolbarElementinstead. withBreakEmptyResetandwithDeleteStartReset– renamed option
typePtodefaultType.withToggleType– renamed optiontypePtodefaultTypewithTable– removedinsertBreakhandler that prevented to insert
break inside table cells, you should now useSoftBreakPluginto
allow inserting soft breaks instead.
Features
- new types, including
SlateDocumentto enforce a valid structure to
be used in<Slate> - added
inlineTypesandvoidTypesproperties to theSlatePlugin
interface.EditablePluginswill setisInlineandisVoidto each
provided type. withVoidandwithInlinehave been replaced bywithInlineVoid.withResetBlockType– combineswithBreakEmptyResetand
withDeleteStartReset.SoftBreakPlugin– configurable rules.ExitBreakPlugin.
Bug Fixes
deserializeHTMLToDocumentFragmentcould return a fragment with emptychildren,
crashing the editor. It has been fixed so all elements have at least
one children (empty text) by usingSlateDocumenttype.withDeserializeHTMLwas buggy when the first inserted node is an
inline element (e.g. mention element).