From bd1c5e4454175e5d2cca49cdecb9c513303b92a2 Mon Sep 17 00:00:00 2001 From: Urban Rotnik Date: Fri, 4 Oct 2019 14:55:14 +0200 Subject: [PATCH] Fix focus for RTE --- app/assets/javascripts/sitewide/tiny_mce.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/sitewide/tiny_mce.js b/app/assets/javascripts/sitewide/tiny_mce.js index e6e6f62aa..65f13a5b1 100644 --- a/app/assets/javascripts/sitewide/tiny_mce.js +++ b/app/assets/javascripts/sitewide/tiny_mce.js @@ -278,7 +278,9 @@ var TinyMCE = (function() { .removeClass('hidden'); // Set cursor to the end of the content - editor.focus(); + if (editor.settings.id !== 'step_description_textarea') { + editor.focus(); + } editor.selection.select(editor.getBody(), true); editor.selection.collapse(false);