From 203c5d64c13b2fad2b2dd489e7e6a205f9dc2439 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) { $('