Skip to content

Commit

Permalink
Fixes insert URL/email in Firefox put cursor after closing of a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanMussi committed Jun 18, 2020
1 parent 4d7c6b3 commit 8f05b3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/defaultCommands.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ var defaultCmds = {
'<a href="' +
'mailto:' + escape.entities(email) + '">' +
escape.entities((text || email)) +
'</a>'
'</a><span></span>'
);
} else {
editor.execCommand('createlink', 'mailto:' + email);
Expand Down Expand Up @@ -613,7 +613,7 @@ var defaultCmds = {
editor.wysiwygEditorInsertHtml(
'<a href="' + escape.entities(url) + '">' +
escape.entities(text) +
'</a>'
'</a><span></span>'
);
} else {
editor.execCommand('createlink', url);
Expand Down

0 comments on commit 8f05b3a

Please sign in to comment.