Closed hungqcao closed 6 years ago
I tested in Edge and Internet Explorer. It appears to fix the problem with not being able to use the hyperlink button.
I did notice, however, that it only works properly if you type text first, select that text, and then click the hyperlink button. If you simply click the hyperlink button and type your link, it does not add it to the editor window like it does in Chrome.
Can someone else test and confirm my findings?
I have pushed @hungqcao changes to my fork with some minor edits of my own. I will create a new issue regarding discrepancies in how Chrome allows creation of a hyperlink straight from the button, without requiring a text selection while other browsers do not..
@kaptainkommie I will take a look at the issue about not having previous selection on Edge. I did notice it during testing though.
@hungqcao I created issue #127 for this, I have provided a bit more information there.
Instead of calling
markSelection
in focus and clearing browser selection (which will cause issue of losing focus on Edge), we willmarkSelection
at the time users click to the hyperlink button. Also always clearing the highlighted selection when bootstrap dropdown closes or losing focus on hyperlink input.