In codemirror-ui I want to execute one of the commands described here: https://codemirror.net/doc/manual.html#commands
I have the following code:
<ui-codemirror ui-codemirror-opts="editorOptions" ng-model="model"/>
<input type="button" ng-click="selectAll()" value="Select All"/>
Controller:
$scope.selectAll = new function() {
// how to cm.execCommand('selectAll')?
}