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
The case where selection is not collapsed is MacOS accent panel. While navigating through the accents, native selection is non-collapsed containing newly inserted accent. While the input command uses position, it collapses selection in a view/model which causes additional rendering step (because selection in DOM is not collapsed). Using Range instead of Position will prevent this situation.
It is important due to the fact that rerendering selection during the composition breaks it in Safari.
The text was updated successfully, but these errors were encountered:
f1ames
changed the title
InputCommand should accept range instead of position as an parameter.
InputCommand should accept range instead of position as a parameter.
Mar 13, 2017
Fix: `InputCommand` now accepts `Range` instead of `Position` as a parameter. Closes #86. Closes #54.
BREAKING CHANGE: `InputCommand` `options.resultPosition` was replaced with `options.resultRange`.
mlewand
transferred this issue from ckeditor/ckeditor5-typing
Oct 9, 2019
While
InputCommand
uses position to restore selection (https://github.com/ckeditor/ckeditor5-typing/blob/master/src/inputcommand.js#L67) it works in most cases due to the fact that selection is collapsed after text insertion.The case where selection is not collapsed is MacOS accent panel. While navigating through the accents, native selection is non-collapsed containing newly inserted accent. While the input command uses position, it collapses selection in a view/model which causes additional rendering step (because selection in DOM is not collapsed). Using
Range
instead ofPosition
will prevent this situation.It is important due to the fact that rerendering selection during the composition breaks it in Safari.
The text was updated successfully, but these errors were encountered: