sachinchoolur / angular-trix

A rich WYSIWYG text editor directive for angularjs.
http://sachinchoolur.github.io/angular-trix/
MIT License
328 stars 62 forks source link

Controller updates on trix-blur behave incorrectly #3

Open ablamunits opened 8 years ago

ablamunits commented 8 years ago

Hi,

Trying to use trix-blur in order to update the controller, for example trix-blur="ctrl.updateCtrlStuff()" fails until the next digest cycle.

Adding scope.$apply ensures that any changes made as a result of trix-blur and other events are correctly updated in the controller.