{"action":"closed","issue":{"url":"https://api.github.com/repos/ckeditor/ckeditor5/issues/830","repository_url":"https://api.github.com/repos/ckeditor/ckeditor5","labels_url":"https://api.github.com/repos/ckeditor/ckeditor5/issues/830/labels{/name}","comments_url":"https://api.github.com/repos/ckeditor/ckeditor5/issues/830/comments","events_url":"https://api.github.com/repos/ckeditor/ckeditor5/issues/830/events","html_url":"https://github.com/ckeditor/ckeditor5/issues/830","id":295400939,"number":830,"title":"How to create instance of Ckeditor 5 on already rendered html in angular 5?","user":{"login":"learn44","id":36160863,"avatar_url":"https://avatars1.githubusercontent.com/u/36160863?v=4","gravatar_id":"","url":"https://api.github.com/users/learn44","html_url":"https://github.com/learn44","followers_url":"https://api.github.com/users/learn44/followers","following_url":"https://api.github.com/users/learn44/following{/other_user}","gists_url":"https://api.github.com/users/learn44/gists{/gist_id}","starred_url":"https://api.github.com/users/learn44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learn44/subscriptions","organizations_url":"https://api.github.com/users/learn44/orgs","repos_url":"https://api.github.com/users/learn44/repos","events_url":"https://api.github.com/users/learn44/events{/privacy}","received_events_url":"https://api.github.com/users/learn44/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-08T06:36:44Z","updated_at":"2018-02-08T08:20:07Z","closed_at":"2018-02-08T08:20:07Z","author_association":"NONE","body":"Hi,\r\nI have used your this solution https://github.com/mswilson4040/ckangular and it has solved my issue of ckeditor not working in angular. Here you are creating html first for editor on which its instance will be created and then you call ckedtor create function. Now I have case where I have a modal where html is rendered first and then i need to create ckeditor instance. I am using below code currently to achieve this:\r\n  <input type=\"text\" formControlName=\"data\" style=\"height: 320px; width: 603px;\" id=\"purpose-editor\" />\r\n//where editor instance will be created.\r\n<span *ngIf=\"generate\">\r\n{{generateEditors()}}//calling type script function to create a instance on above\r\n\r\n.ts:\r\ngenerateEditors() {\r\ndebugger;\r\nthis.ckEditor = new CkEditor();\r\nthis.ckEditor.create('purpose-editor');\r\nthis.generate = false;\r\n}\r\n\r\nThe problem in this function is it is calling again and again infinite calling and my app gets hang.\r\n\r\nSeconfly I have installed ng-onload package but I dont know how to import and use that in\r\n//where editor instance will be created.\r\n\r\nSo quick help in this either case will be appreciated."}}
{"actor":{"display_login":"jodator"}}