You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
I'm trying to set callback save_onsavecallback for the save plugin. But it looks like it is not at all registered as a callback through the init options.
I expected to see $scope is not defined or some error. but It did nothing. There is something else that I'm missing while sending the callback function,
Yes I'm pretty sure. That I have included "save" plugin in the list of plugins and the Save icon appeared in the toolbar as expected. but the callback method isn't triggered as expected.
may be I will create a plunker for submitting over here for investigation
This seems to be the issue :
when save_enablewhendirty is set as true (default), the callback is not trigged at all.
When this option is set to false. Everything seems to work fine. (A StackOverflow user has identified that it is working when set to false. Never occurred to me, as i just didn't want to modify the default value )
Cause : Even though the content with TinyMCE is changed. It says that the control is still untouched.
ng-untouched ng-valid ng-not-empty ng-dirty ng-valid-parse
Hey Dan, I was facing the same issue with ui-tinymce where save callback is not getting called. I have created a PR along with tests to fix the issue. Could you please check the same and merge it if you find it okay.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm trying to set callback save_onsavecallback for the save plugin. But it looks like it is not at all registered as a callback through the init options.
I expected to see $scope is not defined or some error. but It did nothing. There is something else that I'm missing while sending the callback function,
I have posted a query in SO if someone has done similar thing with the save plugin
http://stackoverflow.com/questions/37512082/angular-directive-how-to-trigger-a-save-method-in-the-controller-whentinymce-s
Kindly let me know if you want me to share some additional code snippet
The text was updated successfully, but these errors were encountered: