Invoke when new block entity is created in DOM tree
The related entity
Invoke when merge two continuous text nodes, we need to merge their indexes as well
Target text node to merge into
Source text node to merge from
Invoked when new paragraph node is created in DOM tree
The new DOM node for this paragraph
Invoked when processing a segment
The new DOM node for this segment
Parent paragraph of this segment
The source segments
Invoked when new table node is created in DOM tree
The new DOM node for this table
When child list of editor content is changed, we can use this method to do sync the change from editor into content model. This is mostly used when user start to type in an empty line. In that case browser will remove the existing BR node in the empty line if any, and create a new TEXT node for the typed text. Here we use these information to remove original Br segment and create a new Text segment in content model. But if we find anything that cannot be handled, return false so caller will invalidate the cached model
Nodes added by browser during mutation
Nodes removed by browser during mutation
True if the changed nodes are successfully reconciled, otherwise false
When id is changed from DOM element, update the new ID to related content model if possible
The element that has id changed
True if successfully updated, otherwise false
When document content or selection is changed by user, we need to use this function to update the content model to reflect the latest document. This process can fail since the selected node may not have a related model data structure.
Current cached content model
Latest selection
@optional Original selection before this change
True if reconcile successfully, otherwise false
Generated using TypeDoc
Represents an indexer object which provides methods to help build backward relationship from DOM node to Content Model