{"action":"created","issue":{"url":"https://api.github.com/repos/fraywing/textAngular/issues/713","labels_url":"https://api.github.com/repos/fraywing/textAngular/issues/713/labels{/name}","comments_url":"https://api.github.com/repos/fraywing/textAngular/issues/713/comments","events_url":"https://api.github.com/repos/fraywing/textAngular/issues/713/events","html_url":"https://github.com/fraywing/textAngular/issues/713","id":83099663,"number":713,"title":"Problem to work with browserify.","user":{"login":"huuthonguyen76","id":11501123,"avatar_url":"https://avatars.githubusercontent.com/u/11501123?v=3","gravatar_id":"","url":"https://api.github.com/users/huuthonguyen76","html_url":"https://github.com/huuthonguyen76","followers_url":"https://api.github.com/users/huuthonguyen76/followers","following_url":"https://api.github.com/users/huuthonguyen76/following{/other_user}","gists_url":"https://api.github.com/users/huuthonguyen76/gists{/gist_id}","starred_url":"https://api.github.com/users/huuthonguyen76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huuthonguyen76/subscriptions","organizations_url":"https://api.github.com/users/huuthonguyen76/orgs","repos_url":"https://api.github.com/users/huuthonguyen76/repos","events_url":"https://api.github.com/users/huuthonguyen76/events{/privacy}","received_events_url":"https://api.github.com/users/huuthonguyen76/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2015-05-31T14:23:46Z","updated_at":"2015-12-21T07:52:27Z","closed_at":"2015-09-03T06:05:24Z","body":"Hi guys. I have problem when using textangular with browserify:\r\nCannot find module 'rangy' from '/opt/lampp/htdocs/blog/bower_components/textAngular/dist'.\r\nCan you show me how to fix this"},"comment":{"url":"https://api.github.com/repos/fraywing/textAngular/issues/comments/166226542","html_url":"https://github.com/fraywing/textAngular/issues/713#issuecomment-166226542","issue_url":"https://api.github.com/repos/fraywing/textAngular/issues/713","id":166226542,"user":{"login":"YangZhouChaoFan","id":13232941,"avatar_url":"https://avatars.githubusercontent.com/u/13232941?v=3","gravatar_id":"","url":"https://api.github.com/users/YangZhouChaoFan","html_url":"https://github.com/YangZhouChaoFan","followers_url":"https://api.github.com/users/YangZhouChaoFan/followers","following_url":"https://api.github.com/users/YangZhouChaoFan/following{/other_user}","gists_url":"https://api.github.com/users/YangZhouChaoFan/gists{/gist_id}","starred_url":"https://api.github.com/users/YangZhouChaoFan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YangZhouChaoFan/subscriptions","organizations_url":"https://api.github.com/users/YangZhouChaoFan/orgs","repos_url":"https://api.github.com/users/YangZhouChaoFan/repos","events_url":"https://api.github.com/users/YangZhouChaoFan/events{/privacy}","received_events_url":"https://api.github.com/users/YangZhouChaoFan/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T07:52:26Z","updated_at":"2015-12-21T07:52:26Z","body":"我也遇到同样问题，我的插件版本为\r\nAngular 1.4.8\r\ntextAngular 1.4.6\r\nrangy 1.3\r\nrequirejs 2.1.22\r\n\r\n下面是我的解决方法：\r\n1) 首先配置requirejs的配置文件\r\n```\r\nrequire.config({\r\n    paths: {\r\n        'angular': 'bower_components/angular/angular',\r\n        'rangy-core': 'bower_components/rangy/rangy-core.min',\r\n        'rangy-selectionsave': 'bower_components/rangy/rangy-selectionsaverestore.min',\r\n        'textAngular-sanitize': 'bower_components/textAngular/dist/textAngular-sanitize.min',\r\n        'textAngularSetup': 'bower_components/textAngular/dist/textAngularSetup',\r\n        'textAngular': 'bower_components/textAngular/dist/textAngular'\r\n    },\r\n    shim: {\r\n        'angular': {\r\n            exports: 'angular'\r\n        },\r\n        'rangy-selectionsave': ['rangy-core'],\r\n        'textAngular-sanitize': ['angular'],\r\n        'textAngularSetup': ['angular'],\r\n        'textAngular': ['angular', 'textAngular-sanitize', 'textAngularSetup']\r\n    }\r\n});\r\n\r\nrequire(['rangy-core', 'rangy-selectionsave'], function(rangyCore){\r\n    window.rangy = rangyCore;\r\n});\r\n```\r\n2) 删除textAngular中run方法。\r\n\r\nthat's OK!"}}