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

Properly save selection state when the selection root is the editor #82

Merged
merged 1 commit into from
Jul 31, 2022

Conversation

moderatelyConfused
Copy link
Contributor

In cases where the cursor is at the beginning/end of the text or when all of the text is selected, window.getSelection() can specify the selection with respect to the editor instead of specific text nodes.
This change adds support for saving selection state in save() when this is the case.
Fixes #75

In cases where the cursor is at the beginning/end of the text or when all of the text is selected, window.getSelection() can specify the selection with respect to the editor instead of specific text nodes.
This change adds support for saving selection state in save() when this is the case.
Fixes antonmedv#75
@antonmedv antonmedv merged commit f7e41cf into antonmedv:master Jul 31, 2022
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 ctrl+a dont work (CodeJar 3.5.0)
2 participants