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

EditContext: Handle backward selections and remove double underline #249

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

captainbrosset
Copy link
Contributor

The EditContext API now supports backward selections, so I needed to update the code. Also, the double underline style for IME text formats is going away, so I removed the code for it.

@Rumyra Rumyra merged commit d6a2a23 into mdn:main Feb 1, 2024
@captainbrosset captainbrosset deleted the editcontext-demo-fixes branch February 1, 2024 13:37
}

// Render the initial view.
render();
setInterval(render, 1000);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain why we have to do this now? It has the unfortunate effect of making it impossible to use the devtools inspector for the rendered text.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't remember why I added this. Tested again without it, and I'm not seeing any issue so far. I'll open a PR to remove this. Thanks Will.

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.

3 participants