You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some observers, like selection or mutation observers, create an instance of Selection and put it in the event. Now Selection is read-only so it can not be created nor modified without using a private API.
We should solve it the same way we do it the model: rename current Selection to DocumentSelection and introduce another Selection class, with public write API.
The text was updated successfully, but these errors were encountered:
Other: View selection is now split onto Selection and DocumentSelection. Closes #1304 .
BREAKING CHANGE: Introduced view.DocumentSelection. It has protected API and can be modified only by view writer. Observers creating instance of selection (like SelectionObserver, MutationObserver) use view.Selection class now.
mlewand
transferred this issue from ckeditor/ckeditor5-engine
Oct 9, 2019
Follow-up to #4222.
Some observers, like selection or mutation observers, create an instance of
Selection
and put it in the event. NowSelection
isread-only
so it can not be created nor modified without using a private API.We should solve it the same way we do it the model: rename current
Selection
toDocumentSelection
and introduce anotherSelection
class, with public write API.The text was updated successfully, but these errors were encountered: