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
Post a Comment