1

テキスト領域をクリックすると、「Uncaught TypeError: 未定義のプロパティ 'getSelection' を読み取ることができません」というメッセージが表示され、「TypeError: 未定義のプロパティ 'getSelection' を読み取れません」と入力されました。

angularで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]

詳しくは添付ファイルをご覧ください。

4

0 に答える 0