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

Correctly interpret a reported selection of the editor element #218

Merged
merged 1 commit into from
Nov 9, 2015

Conversation

bantic
Copy link
Collaborator

@bantic bantic commented Nov 9, 2015

In Firefox, typing Command-A changes the selection to have the
editor element as the focus and anchor node (other browsers select the
first and last text nodes in the editor element). Changes
Position.fromNode to correctly detect this and return the correct
Position

Also some cleanup in tests and removed usage of isMarkerable functions
throughout the codebase in favor of section.isMarkerable property.

fixes #215

In Firefox, typing Command-A changes the selection to have the
editor element as the focus and anchor node (other browsers select the
first and last text nodes in the editor element). Changes
Position.fromNode to correctly detect this and return the correct
Position

Also some cleanup in tests and removed usage of `isMarkerable` functions
throughout the codebase in favor of `section.isMarkerable` property.

fixes #215
bantic added a commit that referenced this pull request Nov 9, 2015
Correctly interpret a reported selection of the editor element
@bantic bantic merged commit 0f26292 into master Nov 9, 2015
@bantic bantic deleted the select-all-215 branch November 9, 2015 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Firefox throws errors after selecting-all, deleting, and then typing
1 participant