在 codemirror-ui 中,我想执行此处描述的命令之一: https ://codemirror.net/doc/manual.html#commands
我有以下代码:
<ui-codemirror ui-codemirror-opts="editorOptions" ng-model="model"/>
<input type="button" ng-click="selectAll()" value="Select All"/>
控制器:
$scope.selectAll = new function() {
// how to cm.execCommand('selectAll')?
}