mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-05 22:44:22 +08:00
Merge pull request #1857 from aignatov-bio/ai-sci-3578-fix-autosave-rte-icon
Clear TinyMce autosave after manual save [SCI-3578]
This commit is contained in:
commit
8dd57622b5
1 changed files with 1 additions and 0 deletions
1
app/assets/javascripts/sitewide/tiny_mce.js
vendored
1
app/assets/javascripts/sitewide/tiny_mce.js
vendored
|
@ -165,6 +165,7 @@ var TinyMCE = (function() {
|
|||
.on('ajax:success', function(ev, data) {
|
||||
editor.save();
|
||||
editor.setProgressState(0);
|
||||
editor.plugins.autosave.removeDraft();
|
||||
editorForm.find('.tinymce-status-badge').removeClass('hidden');
|
||||
editor.remove();
|
||||
editorForm.find('.tinymce-view').html(data.html).removeClass('hidden');
|
||||
|
|
Loading…
Reference in a new issue