From 8e2fbd073f84f1be843af4d0e7d55b50796b1de4 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 7 Dec 2017 12:18:14 +0100 Subject: [PATCH] Focus codemirror after using the markdown toolbar --- www/common/common-ui-elements.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index c060b0cdc..c22cd28a4 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -352,6 +352,7 @@ define([ return actions[type].expr.replace('{0}', str); }); editor.replaceSelections(newTexts, 'around'); + editor.focus(); }; for (var k in actions) { $('