angular-ui-tinymce

TinyMCE Dirty Flag is not set or is reset automatically after Editor leaving?

混江龙づ霸主 提交于 2020-02-04 04:00:26
问题 After Configuring the TinyMce Editor and some Functions I want now to Warn the User if he did changes but did not save them. For that Iam Checking the Dirty Flag at Blur. But its always set false . controller.js this.$scope.tinymceOptions = { selector: 'textarea', menubar: false, plugins: 'save', save_enablewhendirty: true, save_onsavecallback: (editor) => { doing here my save stuff }, setup: function(editor) { editor.on('dirty', () => { console.log('dirty woop')//if i do edits its triggered

TinyMCE and Angular Ui TinyMCE with autosave plugin

ⅰ亾dé卋堺 提交于 2020-01-07 03:51:51
问题 There is an issue with angular-ui-tinymce version 0.0.18 when using the autosave plugin. The plugin does not work with angular-ui-tinymce. This has been logged as an issue by someone else on Oct 20, 2016 to the angular-ui github account with no resolution. https://github.com/angular-ui/ui-tinymce/issues/300 Below is the code used : <!DOCTYPE html> <head> <script type="text/javascript" src="bower_components/tinymce/tinymce.js"></script> <script type="text/javascript" src="bower_components