I have two contenteditable having same ng-model when I cut or copy or paste any selection using keyboard shortcut both contenteditable get updated but if I use document.execCommand()
ng-model not get updated, it only work for active contenteditable.
<div ng-model="test" contenteditable="true"></div>
<div ng-model="test" contenteditable="true"></div>
$scope.cutSelection= function(){
document.execCommand("cut");
} //only work for active contenteditable
I am not getting any error it just not updating inactive contenteditable