当我单击文本区域时,我得到“未捕获的 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]
更多内容请查看附件。