angularjs - ng-model not getting update with document.execCommand() -


i have 2 contenteditable having same ng-model when cut or copy or paste selection using keyboard shortcut both contenteditable updated if use document.execcommand() ng-model not updated, work active contenteditable.

<div ng-model="test" contenteditable="true"></div> <div ng-model="test" contenteditable="true"></div>   $scope.cutselection= function(){      document.execcommand("cut");  } //only work active contenteditable 

i not getting error not updating inactive contenteditable


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -