typing/utils/utils
@ckeditor/ckeditor5-typing/src/utils/utils
module
Filtering
Functions
-
compareChildNodes( oldChild, newChild ) → Boolean
private
Checks whether two view nodes are identical, which means they are the same object or contain exactly same data (in case of text nodes).
-
containerChildrenMutated( mutations ) → Boolean
private
Returns true if container children have mutated or more than a single text node was changed.
-
getSingleTextNodeChange( mutation ) → Object | undefined
private
Returns change made to a single text node.
Parameters
mutation : MutatedText | MutatedChildren
Returns
Object | undefined
Change object (see
diffToChanges
output) or undefined if more than a single text node was changed.