From 8f05b3a1403036d168ee6248b3029af88958c58e Mon Sep 17 00:00:00 2001 From: Jordan Mussi Date: Thu, 18 Jun 2020 21:18:36 +0100 Subject: [PATCH] Fixes insert URL/email in Firefox put cursor after closing of `a` tag https://github.com/mybb/mybb/issues/3290 https://github.com/samclarke/SCEditor/issues/644 --- src/lib/defaultCommands.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/defaultCommands.js b/src/lib/defaultCommands.js index f98d86b7c..40fa834bb 100644 --- a/src/lib/defaultCommands.js +++ b/src/lib/defaultCommands.js @@ -553,7 +553,7 @@ var defaultCmds = { '' + escape.entities((text || email)) + - '' + '' ); } else { editor.execCommand('createlink', 'mailto:' + email); @@ -613,7 +613,7 @@ var defaultCmds = { editor.wysiwygEditorInsertHtml( '' + escape.entities(text) + - '' + '' ); } else { editor.execCommand('createlink', url);