1
如何从Kendo UI Editor中的事件中获取事件属性?Kendo UI Editor Angularjs中的事件
我已经从KendoDemo下载了代码并编辑了一下,以获得k-on-change
和k-on-keydown
的事件。 事件描述为here。
<div id="example" ng-app="KendoDemos">
<div ng-controller="MyCtrl">
<textarea kendo-editor k-ng-model="html" k-on-keydown="keydown(e)" k-on-change="onChange(e)"></textarea>
</div>
</div>
<script>
angular.module("KendoDemos", [ "kendo.directives", "ngSanitize" ])
.controller("MyCtrl", function($scope){
$scope.html = "<h1>Kendo Editor</h1>\n\n" +
"<p>Note that 'change' is triggered when the editor loses focus.\n" +
"<br /> That's when the Angular scope gets updated.</p>";
$scope.onChange = function(e){
console.log('onchange');
console.log(e);
};
$scope.keydown = function(e){
console.log('keydown');
console.log(e);
}
})
</script>
事件方法的输出的onChange和的keyDown不给我的文档中描述的e
财产。
我错过了什么?
我有同样的问题无法捕捉事件。但是,上述解决方案不适合我。我的问题可能与Windows Mobile有关。 –