mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-02 21:20:08 +08:00
Merge pull request #1810 from okriuchykhin/ok_SCI_3511
Fix RTE editor initialization for new step in protocol [SCI-3511]
This commit is contained in:
commit
c49dbe5c44
1 changed files with 8 additions and 3 deletions
|
@ -364,6 +364,7 @@
|
|||
});
|
||||
toggleButtons(true);
|
||||
DragNDropSteps.clearFiles();
|
||||
tinyMCE.editors.step_description_textarea.remove();
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -501,9 +502,13 @@
|
|||
initializeCheckboxSorting();
|
||||
|
||||
$('#step_name').focus();
|
||||
$('#new-step-main-tab a').on('shown.bs.tab', function() {
|
||||
$('#step_name').focus();
|
||||
});
|
||||
$('#new-step-main-tab a')
|
||||
.on('shown.bs.tab', function() {
|
||||
$('#step_name').focus();
|
||||
TinyMCE.init('#step_description_textarea');
|
||||
}).on('hidden.bs.tab', function() {
|
||||
tinyMCE.editors.step_description_textarea.remove();
|
||||
});
|
||||
|
||||
TinyMCE.init('#step_description_textarea');
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue