Skip to content

Commit

Permalink
Fixes #164.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanneculai committed Mar 2, 2018
1 parent c4a66fa commit 01bcc7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/angular-froala.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,15 @@
}
} else {
element.froalaEditor('html.set', ngModel.$viewValue || '', true);

//This will reset the undo stack everytime the model changes externally. Can we fix this?
element.froalaEditor('undo.reset');
element.froalaEditor('undo.saveStep');
}
}
else {
element.froalaEditor('html.set', ngModel.$viewValue || '', true);
}
};

ngModel.$isEmpty = function (value) {
Expand Down

0 comments on commit 01bcc7d

Please sign in to comment.