typing/utils/utils
@ckeditor/ckeditor5-typing/src/utils/utils
module
Filtering
Functions
-
compareChildNodes( oldChild, newChild ) → Boolean
private static
-
containerChildrenMutated( mutations ) → Boolean
private static
Returns true if container children have mutated or more than a single text node was changed.
-
getSingleTextNodeChange( mutation ) → Object | undefined
private static
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.