Merge pull request #2122 from aignatov-bio/ai-sci-disable-autosave-feature

Disable autosave notification feature
This commit is contained in:
aignatov-bio 2019-10-04 09:17:16 +02:00 committed by GitHub
commit a39a95d2a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View file

@ -114,7 +114,7 @@ var TinyMCE = (function() {
cache_suffix: '?v=4.9.3', // This suffix should be changed any time library is updated
selector: selector,
menubar: 'file edit view insert format',
toolbar: 'undo redo | insert | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link | forecolor backcolor | customimageuploader marvinjsplugin | codesample',
toolbar: 'undo redo restoredraft | insert | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link | forecolor backcolor | customimageuploader marvinjsplugin | codesample',
plugins: plugins,
autoresize_bottom_margin: 20,
codesample_languages: [
@ -135,8 +135,7 @@ var TinyMCE = (function() {
browser_spellcheck: true,
branding: false,
fixed_toolbar_container: '#mytoolbar',
autosave_restore_when_empty: false,
autosave_interval: '1s',
autosave_interval: '15s',
autosave_retention: '1440m',
removed_menuitems: 'newdocument',
object_resizing: true,
@ -314,9 +313,9 @@ var TinyMCE = (function() {
menuBar.find('.tinymce-cancel-button').remove();
});
editor.on('init', function(e) {
/* editor.on('init', function(e) {
restoreDraftNotification(selector, editor);
});
});*/
},
codesample_content_css: $(selector).data('highlightjs-path')
});

View file

@ -46,7 +46,7 @@ tinymce.PluginManager.add('placeholder', function(editor) {
label.hide();
}
calculatePlaceholderPosition();
// calculatePlaceholderPosition();
}
function onKeydown() {