typing/utils/utils
@ckeditor/ckeditor5-typing/src/utils/utils
Filtering
Functions
-
compareChildNodes( oldChild, newChild ) → Booleanmodule:typing/utils/utils~compareChildNodesprivate
Checks whether two view nodes are identical, which means they are the same object or contain exactly same data (in case of text nodes).
Parameters
Returns
Boolean
-
containerChildrenMutated( mutations ) → Booleanmodule:typing/utils/utils~containerChildrenMutatedprivate
Returns true if container children have mutated or more than a single text node was changed.
Parameters
mutations : Array.<(MutatedText | MutatedChildren)>
Returns
Boolean
-
getSingleTextNodeChange( mutation ) → Object | undefinedmodule:typing/utils/utils~getSingleTextNodeChangeprivate
Returns change made to a single text node.
Parameters
mutation : MutatedText | MutatedChildren
Returns
Object | undefinedChange object (see
diffToChangesoutput) or undefined if more than a single text node was changed.
-
isShiftDeleteOnNonCollapsedSelection( domEventData, document ) → Booleanmodule:typing/utils/utils~isShiftDeleteOnNonCollapsedSelectionChecks if Shift + Delete keystroke was pressed on a non-collapsed selection.
This key combination has a special meaning on Windows machines and it should work in the same way as the
cutevent on a non-collapsed selection.Parameters
domEventData : DomEventDataEvent data.
document : DocumentThe document instance on which the event has been fired.
Returns
Boolean
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.