Report an issue
Module

engine/view/observer/selectionobserver

@ckeditor/ckeditor5-engine/src/view/observer/selectionobserver

module

Filtering

Classes

  • Selection observer class observes selection changes in the document. If selection changes on the document this observer checks if there are any mutations and if DOM selection is different than the view selection. Selection observer fires event-selectionChange event only if selection change was the only change in the document and DOM selection is different then the view selection.