diff --git a/src/lib/defaultCommands.js b/src/lib/defaultCommands.js index 2365405c4..92d4204e9 100644 --- a/src/lib/defaultCommands.js +++ b/src/lib/defaultCommands.js @@ -544,11 +544,15 @@ var defaultCmds = { editor.wysiwygEditorInsertHtml( '' + - escape.entities((text || email)) + - '' + escape.entities(text || email) + + '​' ); } else { - editor.execCommand('createlink', 'mailto:' + email); + editor.wysiwygEditorInsertHtml( + '', + '​' + ); } } ); @@ -597,10 +601,13 @@ var defaultCmds = { editor.wysiwygEditorInsertHtml( '' + escape.entities(text || url) + - '' + '​' ); } else { - editor.execCommand('createlink', url); + editor.wysiwygEditorInsertHtml( + '', + '​' + ); } }); },