Skip to content

Commit 9a33462

Browse files
committed
Add condition to avoid triggering $digest unnecessarily
1 parent fcb9703 commit 9a33462

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tinymce.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ angular.module('ui.tinymce', [])
5555
});
5656
// Update model on change, i.e. copy/pasted text, plugins altering content
5757
ed.on('SetContent', function (e) {
58-
if(!e.initial){
58+
if (!e.initial && ngModel.$viewValue !== e.content) {
5959
ed.save();
6060
updateView();
6161
}

0 commit comments

Comments
 (0)