Post

0 followers Follow
0
Avatar

Autosave sync with tinymce

We are adding this in one of our projects, but within our app we add dynamic content into tinymce.
Would it be possible to have the static html be saved in the browser autosave instead of the beefree code.
We could then sync this with tinymce so the dynamic content can be added.

naithan

Please sign in to leave a comment.

4 comments

0
Avatar

I tried:
onAutoSave: function(htmlFile) { // + thumbnail?
console.log(new Date().toISOString() + ' autosaving...');
window.localStorage.setItem('editorplus.autosave', htmlFile);
},

but it still saves it as json

naithan 0 votes
Comment actions Permalink
0
Avatar

Would it somehow be possible to link the save() output to my app's input directly? Or will I always have to save and then import.
I'm afraid the built in feature is not strong enough as every user has its own database with different possible fields (some over 50)
I don't see a way how to make use of that within bee.
We will most probably incorporate your editor though, it is a nice piece of work, we just have to find a good way to implement it.

naithan 0 votes
Comment actions Permalink