mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-05 22:44:22 +08:00
Clear TinyMce autosave after manual save
This commit is contained in:
parent
db7c6435b3
commit
76e09a2a3d
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