当我点击文本区域时,我得到了#34; Uncaught TypeError:无法读取属性' getSelection'未定义"在键入" TypeError时:无法读取属性' getSelection'未定义"。
我正在使用带角度的requirejs。 我的配置如下:
paths: {
jquery : '../lib/bower_components/jquery/dist/jquery.min',
angular : '../lib/bower_components/angular/angular.min',
ngCookies : '../lib/bower_components/angular-cookies/angular-cookies.min',
ngResource : '../lib/bower_components/angular-resource/angular-resource.min',
ngRoute : '../lib/bower_components/angular-route/angular-route.min',
ngSanitize : '../lib/bower_components/textAngular/dist/textAngular-sanitize.min',
textRangy : '../lib/bower_components/textAngular/dist/textAngular-rangy.min',
textAngular : '../lib/bower_components/textAngular/dist/textAngular.min',
textAngularSetup : '../lib/bower_components/textAngular/dist/textAngularSetup',
}
和依赖
textAngular: { deps: ['angular', 'textRangy']}[![enter image description here][1]][1]
有关详情,请查看附件。