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

Fix backspacing into a block from offset 0 in Firefox #338

merged 2 commits into from Nov 15, 2016


Copy link

@javan javan commented Nov 13, 2016

In Firefox, pressing backspace when the cursor is positioned after a comment node will only remove that node, which effectively deletes nothing.

Minimal test case: Open data:text/html;charset=utf-8,%3Cdiv contenteditable%3Ea%3C!--z--%3E%3C!--z--%3E%3C!--z--%3Eb%3C/div%3E in Firefox and press backspace from the end.

Possibly related bug:

Trix, as of 759e62d, detects the mutation / input mismatch and reparses the document resulting in no deletion and the cursor jumping to the end of the block.



@javan javan merged commit bb118e6 into master Nov 15, 2016
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
@javan javan deleted the fix-firefox-backspace-into-block branch Nov 15, 2016
javan added a commit that referenced this pull request Jan 22, 2017
Avoids a contenteditable bug in Firefox that could result in duplicated <trix-editor>s. Tracked down and reported here:

Somewhat related: #338
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.