Patch Changes
-
#3943 by @felixfeng33 –
editor.api.html.deserialize
: Support deserialization from PlateStatic.New:
getEditorDOMFromHtmlString
returns the editor element in html string (the one withdata-slate-editor="true"
).New utilities for checking Slate nodes in HTML:
isSlateVoid
: Check if an HTML element is a Slate void nodeisSlateElement
: Check if an HTML element is a Slate element nodeisSlateString
: Check if an HTML element is a Slate string nodeisSlateLeaf
: Check if an HTML element is a Slate leaf nodeisSlateNode
: Check if an HTML element is any type of Slate nodeisSlatePluginElement
: Check if an HTML element is a Slate element node with a specific plugin keyisSlatePluginNode
: Check if an HTML element has a specific plugin key classgetSlateElements
: Get all Slate element nodes in an HTML element