{"action":"opened","issue":{"url":"https://api.github.com/repos/fex-team/ueditor/issues/1989","labels_url":"https://api.github.com/repos/fex-team/ueditor/issues/1989/labels{/name}","comments_url":"https://api.github.com/repos/fex-team/ueditor/issues/1989/comments","events_url":"https://api.github.com/repos/fex-team/ueditor/issues/1989/events","html_url":"https://github.com/fex-team/ueditor/issues/1989","id":72086242,"number":1989,"title":"ueditor是不是不支持angular ui-router?","user":{"login":"maozhenhua2","id":7087532,"avatar_url":"https://avatars.githubusercontent.com/u/7087532?v=3","gravatar_id":"","url":"https://api.github.com/users/maozhenhua2","html_url":"https://github.com/maozhenhua2","followers_url":"https://api.github.com/users/maozhenhua2/followers","following_url":"https://api.github.com/users/maozhenhua2/following{/other_user}","gists_url":"https://api.github.com/users/maozhenhua2/gists{/gist_id}","starred_url":"https://api.github.com/users/maozhenhua2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maozhenhua2/subscriptions","organizations_url":"https://api.github.com/users/maozhenhua2/orgs","repos_url":"https://api.github.com/users/maozhenhua2/repos","events_url":"https://api.github.com/users/maozhenhua2/events{/privacy}","received_events_url":"https://api.github.com/users/maozhenhua2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-30T07:22:37Z","updated_at":"2015-04-30T07:22:37Z","closed_at":null,"body":".config(function ($stateProvider, $urlRouterProvider) {\r\n    $stateProvider.\r\n      state('list', {\r\n        url: '/',\r\n        templateUrl: 'NewsList',\r\n        controller: 'ListController'\r\n      }).\r\n      state('h5', {\r\n        url: '/h5',\r\n        templateUrl: 'H5NewsDetail',\r\n        controller: 'H5Controller'\r\n      }).\r\n      state('text', {\r\n        url: '/text',\r\n        templateUrl: 'TextNewsDetail',\r\n        controller: 'TextController'\r\n      })\r\n  })\r\n\r\n用了https://github.com/zqjimlove/angular-ueditor这个\r\n\r\n我在TextNewsDetail这个页面里放了ueditor，第一次加载的时候是好的，但是只要进入别的页面然后在回到这个页面就会出错\r\n\r\n\r\nTypeError: Cannot read property 'length' of undefined\r\n    at null.<anonymous> (http://localhost:3174/Scripts/angular/angular-ueditor.js:59:41)\r\n    at h.ready (http://localhost:3174/Scripts/UEEditor1_4_3/ueditor.all.min.js:94:455)\r\n    at _NGUeditor.initEditor (http://localhost:3174/Scripts/angular/angular-ueditor.js:48:36)\r\n    at new _NGUeditor (http://localhost:3174/Scripts/angular/angular-ueditor.js:27:22)\r\n    at link (http://localhost:3174/Scripts/angular/angular-ueditor.js:90:13)\r\n    at http://localhost:3174/Scripts/angular/angular.min.js:70:141\r\n    at $ (http://localhost:3174/Scripts/angular/angular.min.js:70:197)\r\n    at B (http://localhost:3174/Scripts/angular/angular.min.js:59:255)\r\n    at g (http://localhost:3174/Scripts/angular/angular.min.js:51:335)\r\n    at B (http://localhost:3174/Scripts/angular/angular.min.js:59:199) <div class=\"ueditor ng-pristine ng-untouched ng-valid ng-isolate-scope\" id=\"NewsContent\" name=\"NewsContent\" config=\"config\" ng-model=\"g.editData.NewsContent\">\r\nangular.min.js:102 TypeError: Cannot set property 'innerHTML' of null\r\n    at a (ueditor.all.min.js:676)\r\n    at null.<anonymous> (ueditor.all.min.js:681)\r\n    at Z.fireEvent (ueditor.all.min.js:21)\r\n    at null.<anonymous> (ueditor.all.min.js:249)\r\n    at Z.fireEvent (ueditor.all.min.js:21)\r\n    at h.setContent (ueditor.all.min.js:109)\r\n    at _NGUeditor.setEditorContent (angular-ueditor.js:73)\r\n    at _NGUeditor.bindRender.ctrl.$render (angular-ueditor.js:83)\r\n    at Object.<anonymous> (angular.min.js:228)\r\n\r\n不知道是什么问题\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"}}