mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 11:57:16 +08:00
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:
commit
037bba9a16
1 changed files with 3 additions and 1 deletions
4
app/assets/javascripts/sitewide/tiny_mce.js
vendored
4
app/assets/javascripts/sitewide/tiny_mce.js
vendored
|
@ -278,7 +278,9 @@ var TinyMCE = (function() {
|
||||||
.removeClass('hidden');
|
.removeClass('hidden');
|
||||||
|
|
||||||
// Set cursor to the end of the content
|
// 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.select(editor.getBody(), true);
|
||||||
editor.selection.collapse(false);
|
editor.selection.collapse(false);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue