Add selection.isCollapsed method #800
Labels
status:confirmed
An issue confirmed by the development team.
type:task
Any other issue (refactoring, typo fix, etc).
Milestone
Are you reporting a feature request or a bug?
Task
At the moment if there is need to check if current selection is collapsed, the first range must be fetched just to check its
collapsed
property:It'd be nice if we provide
selection.isCollapsed
method, which will wrap this logic.The text was updated successfully, but these errors were encountered: