Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It might help to write clearer code, if EditContext would have some attributes #25

Open
masayuki-nakano opened this issue Dec 13, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@masayuki-nakano
Copy link

  • selectionIsCollapsed (true if selectionStart == selectionEnd)
  • selectionLength (the value of selectionEnd - selectionStart)
  • compositionRangeIsCollapsed (true if compositionRangeStart == compositionRangeEnd)
  • compositionRangeLenth (the value of compositionRangeEnd - compositionRangeStart)

Not strong opinion, I just wondered.

@alexkeng
Copy link
Contributor

Thanks for the suggestion, we'll evaluate it

@travisleithead travisleithead transferred this issue from w3c/editing Apr 21, 2022
@dandclark dandclark added the enhancement New feature or request label Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants