mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
Fix focus for RTE
This commit is contained in:
parent
8176ce3a9d
commit
bd1c5e4454
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');
|
||||
|
||||
// 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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue