Merge pull request #2126 from urbanrotnik/ur-sci-3738-new-ste-default-field-selection

Fix focus for RTE [SCI-3738]
This commit is contained in:
Urban Rotnik 2019-10-04 15:02:55 +02:00 committed by GitHub
commit 037bba9a16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);