CKEDITOR.plugins.undo.NativeEditingHandler
A class encapsulating all native event listeners which have to be used in order to handle undo manager integration for native editing actions (excluding drag and drop and paste support handled by the Clipboard plugin).
Undo manager owning the handler.
Filtering
Properties
-
keyEventsStack : KeyEventsStack
CKEDITOR.plugins.undo.NativeEditingHandler#keyEventsStack
since 4.4.5
A stack of pressed keys.
-
lastKeydownImage : Image
CKEDITOR.plugins.undo.NativeEditingHandler#lastKeydownImage
An image of the editor during the
keydown
event (therefore without DOM modification). -
undoManager : UndoManager
CKEDITOR.plugins.undo.NativeEditingHandler#undoManager
An undo manager instance owning the editing handler.
-
ignoreInputEvent : Boolean
CKEDITOR.plugins.undo.NativeEditingHandler#ignoreInputEvent
since 4.4.5 private
Defaults to
false
Methods
-
constructor( undoManager ) → NativeEditingHandler
CKEDITOR.plugins.undo.NativeEditingHandler#constructor
-
activateInputEventListener()
CKEDITOR.plugins.undo.NativeEditingHandler#activateInputEventListener
since 4.7.3
Stops ignoring
input
events. -
attachListeners()
CKEDITOR.plugins.undo.NativeEditingHandler#attachListeners
Attaches editable listeners required to provide the undo functionality.
-
ignoreInputEventListener()
CKEDITOR.plugins.undo.NativeEditingHandler#ignoreInputEventListener
Makes the next
input
event to be ignored. -
onInput()
CKEDITOR.plugins.undo.NativeEditingHandler#onInput
The
input
event listener. -
onKeydown( evt )
CKEDITOR.plugins.undo.NativeEditingHandler#onKeydown
The
keydown
event listener.Parameters
evt : event
-
onKeyup( evt )
CKEDITOR.plugins.undo.NativeEditingHandler#onKeyup
The
keyup
event listener.Parameters
evt : event
-
onNavigationKey( skipContentCompare )
CKEDITOR.plugins.undo.NativeEditingHandler#onNavigationKey
Method called for navigation change. At first it will check if current content does not differ from the last saved snapshot.
- If the content is different, the method creates a standard, extra snapshot.
- If the content is not different, the method will compare the selection, and will amend the last snapshot selection if it changed.
Parameters
skipContentCompare : Boolean
If set to
true
, it will not compare content, and only do a selection check.