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
-
A stack of pressed keys.
lastKeydownImage : ImageCKEDITOR.plugins.undo.NativeEditingHandler#lastKeydownImageAn image of the editor during the
keydownevent (therefore without DOM modification).undoManager : UndoManagerCKEDITOR.plugins.undo.NativeEditingHandler#undoManagerAn undo manager instance owning the editing handler.
since 4.4.5 private
ignoreInputEvent : BooleanCKEDITOR.plugins.undo.NativeEditingHandler#ignoreInputEvent
Methods
constructor( undoManager ) → NativeEditingHandlerCKEDITOR.plugins.undo.NativeEditingHandler#constructorsince 4.7.3
activateInputEventListener()CKEDITOR.plugins.undo.NativeEditingHandler#activateInputEventListenerStops ignoring
inputevents.attachListeners()CKEDITOR.plugins.undo.NativeEditingHandler#attachListenersAttaches editable listeners required to provide the undo functionality.
ignoreInputEventListener()CKEDITOR.plugins.undo.NativeEditingHandler#ignoreInputEventListenerMakes the next
inputevent to be ignored.onInput()CKEDITOR.plugins.undo.NativeEditingHandler#onInputThe
inputevent listener.onKeydown( evt )CKEDITOR.plugins.undo.NativeEditingHandler#onKeydownonKeyup( evt )CKEDITOR.plugins.undo.NativeEditingHandler#onKeyuponNavigationKey( skipContentCompare )CKEDITOR.plugins.undo.NativeEditingHandler#onNavigationKeyMethod 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 : BooleanIf set to
true, it will not compare content, and only do a selection check.