angular-summernote
angular-summernote copied to clipboard
summernote('destroy') breaks binding
Hi, in my application there are situation in which I need to change configuration options for summernote. Since it is not possible to change options after summernote has been initialised (see #153 and #23), I ended up by destroying summernote then rebuilding it with new options:
...
let sn = angular.element(document.getElementById('SN'));
sn.summernote('destroy');
sn.summernote(newOptions);
...
Unfortunately this brakes angular binding in a strange way: if I modify text within summernote the binding variable doesn't get updated but if I update the binding variable (using another component like an input tag, for example) the text inside summernote get updated.
You can have a look at this behavior in the following jsfiddle I made:
https://jsfiddle.net/sertal/790eqytf/113/
Can this be fixed in some way? Thanks