mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-03 21:49:23 +08:00
Close RTE on save [SCI-3062][SCI-3071]
This commit is contained in:
parent
a822227383
commit
2cc170c3d4
1 changed files with 1 additions and 2 deletions
3
app/assets/javascripts/sitewide/tiny_mce.js
vendored
3
app/assets/javascripts/sitewide/tiny_mce.js
vendored
|
@ -144,8 +144,7 @@ var TinyMCE = (function() {
|
|||
editor.save();
|
||||
editor.setProgressState(0);
|
||||
editorForm.find('.tinymce-status-badge').removeClass('hidden');
|
||||
$(editor.getContainer())
|
||||
.find('.tinymce-save-button').addClass('hidden');
|
||||
editor.remove();
|
||||
}).on('ajax:error', function(ev, data) {
|
||||
var model = editor.getElement().dataset.objectType;
|
||||
$(this).renderFormErrors(model, data.responseJSON);
|
||||
|
|
Loading…
Reference in a new issue