angular-ui / ui-tinymce

AngularUI wrapper for TinyMCE
MIT License
488 stars 371 forks source link

Autosave plugin issue #300

Open Eragra3 opened 7 years ago

Eragra3 commented 7 years ago

Hi,

recently I wanted to turn on autosave plugin and it doesn't seem to be working with this angular wrapper. I tried this plugin instead, but again it's not working. I tried to debug it a little bit, and it seems that some 'saveContent' event is fired too often and autosave plugin is instantly removing it's entry from local storage. If you bump up autosave_interval to one second you can see it appearing for a brief moment.

I reproduced this error using your demo page and adding following options object:

ctrl.options = {
      plugins: 'autosave',
      toolbar1: 'restoredraft'
    };

Neither button is working nor entry is saved to local storage. I'm guessing (and hoping) it's minor, easy to fix issue, not architectural/plugin structure problem.

My first time using Plunkr, hopefully it's working plukr

andyfensham commented 7 years ago

Did you find a solution for this. I am also trying to use it but it is not working. I see there were no response to this.

Eragra3 commented 7 years ago

Hi, Andy,

I couldn't solve that problem, we just ignored autosave. I guess one solution would be to create custom Angular wrapper, that shouldn't be actualy that hard.

drzeeb commented 6 years ago

Hi Daniel, did you find a solution yet? We also need the autosave for our project. If there is still no solution for this, we would implement it by ourself and would post the solution here.

Eragra3 commented 6 years ago

No and sorry but I'm no longer working on that project, won't help you much unless I need it again.