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 the expression editor in recent versions of Chrome and Firefox #4969

Merged
merged 1 commit into from
May 5, 2017

Conversation

tlrobinson
Copy link
Contributor

Resolves #4906

Apparently in recent versions of FF and Chrome window.getSelection().getRangeAt(0).setStart(element, 0); will actually mutate the live selection, which is cool, but not what the previous code expected.

@salsakran
Copy link
Contributor

Hawt. That sorta kinda makes sense. Why is Safari different? Or is it just behind?

@VikramTiwari
Copy link
Contributor

Did anyone test it? I tried to patch this on 0.23.1 without any success.

@tlrobinson
Copy link
Contributor Author

Definitely is working for me on this branch. I haven't tried patching on 0.23 but I don't know why it wouldn't work.

screen shot 2017-05-04 at 9 32 07 pm

screen shot 2017-05-04 at 9 32 49 pm

screen shot 2017-05-04 at 9 33 29 pm

Copy link
Contributor

@attekei attekei left a comment

Choose a reason for hiding this comment

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

Works for me as well on Chrome 58, Firefox 53.0 and Safari 10.1.

@tlrobinson
Copy link
Contributor Author

Just tried cherry-picking onto v0.23.1 and confirmed it works there too:

git co v0.23.1
git cherry-pick ccd1f97

@mazameli
Copy link
Contributor

mazameli commented May 5, 2017

I tried the branch and it works locally.

@VikramTiwari
Copy link
Contributor

VikramTiwari commented May 5, 2017

It worked! Not sure why it did not work earlier. Could have been cache on the browser side.

@tlrobinson tlrobinson merged commit f051278 into master May 5, 2017
@tlrobinson tlrobinson deleted the fix-expression-editor branch May 5, 2017 17:57
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.

None yet

6 participants