DeleteEventData (typing)
@ckeditor/ckeditor5-typing/src/deleteobserver
Information about a DOM event in context of the Document
.
It wraps the native event, which usually should not be used as the wrapper contains
additional data (like key code for keyboard events).
Filtering
Properties
-
direction : 'forward' | 'backward'
module:typing/deleteobserver~DeleteEventData#direction
The direction in which the deletion should happen.
-
The instance of the document.
-
The DOM event.
-
The DOM target.
-
selectionToRemove : Selection | DocumentSelection | undefined
module:typing/deleteobserver~DeleteEventData#selectionToRemove
View selection which content should be removed. If not set, current selection should be used.
-
sequence : number
module:typing/deleteobserver~DeleteEventData#sequence
A number describing which subsequent delete event it is without the key being released. If it's 2 or more it means that the key was pressed and hold.
-
The tree view element representing the target.
-
unit : 'selection' | 'character' | 'codePoint' | 'word'
module:typing/deleteobserver~DeleteEventData#unit
The "amount" of content that should be deleted.
-
Instance of the view controller.
Methods
Every day, we work hard to keep our documentation complete. Have you spotted outdated information? Is something missing? Please report it via our issue tracker.
With the release of version 42.0.0, we have rewritten much of our documentation to reflect the new import paths and features. We appreciate your feedback to help us ensure its accuracy and completeness.