{"action":"created","issue":{"url":"https://api.github.com/repos/tylernhoward/ngx-tui-editor/issues/2","repository_url":"https://api.github.com/repos/tylernhoward/ngx-tui-editor","labels_url":"https://api.github.com/repos/tylernhoward/ngx-tui-editor/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/tylernhoward/ngx-tui-editor/issues/2/comments","events_url":"https://api.github.com/repos/tylernhoward/ngx-tui-editor/issues/2/events","html_url":"https://github.com/tylernhoward/ngx-tui-editor/issues/2","id":299328913,"number":2,"title":"Change Event not working","user":{"login":"kishorethecoder","id":3882978,"avatar_url":"https://avatars1.githubusercontent.com/u/3882978?v=4","gravatar_id":"","url":"https://api.github.com/users/kishorethecoder","html_url":"https://github.com/kishorethecoder","followers_url":"https://api.github.com/users/kishorethecoder/followers","following_url":"https://api.github.com/users/kishorethecoder/following{/other_user}","gists_url":"https://api.github.com/users/kishorethecoder/gists{/gist_id}","starred_url":"https://api.github.com/users/kishorethecoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kishorethecoder/subscriptions","organizations_url":"https://api.github.com/users/kishorethecoder/orgs","repos_url":"https://api.github.com/users/kishorethecoder/repos","events_url":"https://api.github.com/users/kishorethecoder/events{/privacy}","received_events_url":"https://api.github.com/users/kishorethecoder/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-22T12:10:01Z","updated_at":"2018-02-23T08:59:02Z","closed_at":"2018-02-23T08:59:02Z","author_association":"NONE","body":" Getting an exception on Change Event.\r\n![image](https://user-images.githubusercontent.com/3882978/36537394-009b0c60-17f6-11e8-8339-d4aa484df072.png)\r\n\r\ni have installed the ngx-tui-editor and added change event  with following options for editor\r\n\r\n`````````````````````````typescript\r\n this.editorOptions =\r\n      {\r\n        initialValue: 'Start Typing',\r\n        initialEditType: 'wysiswg',\r\n        previewStyle: 'vertical',\r\n        height: 'auto',\r\n        minHeight: '500px',\r\n        hooks: {\r\n          addImageBlobHook: (blob, callback) => this.upload(blob, callback)\r\n        },\r\n        events:{change:this.handleEditorChanges()}\r\n      };\r\n\r\nwhen i started typing,got the above exception for every keystroke\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tylernhoward/ngx-tui-editor/issues/comments/367949452","html_url":"https://github.com/tylernhoward/ngx-tui-editor/issues/2#issuecomment-367949452","issue_url":"https://api.github.com/repos/tylernhoward/ngx-tui-editor/issues/2","id":367949452,"user":{"login":"kishorethecoder","id":3882978,"avatar_url":"https://avatars1.githubusercontent.com/u/3882978?v=4","gravatar_id":"","url":"https://api.github.com/users/kishorethecoder","html_url":"https://github.com/kishorethecoder","followers_url":"https://api.github.com/users/kishorethecoder/followers","following_url":"https://api.github.com/users/kishorethecoder/following{/other_user}","gists_url":"https://api.github.com/users/kishorethecoder/gists{/gist_id}","starred_url":"https://api.github.com/users/kishorethecoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kishorethecoder/subscriptions","organizations_url":"https://api.github.com/users/kishorethecoder/orgs","repos_url":"https://api.github.com/users/kishorethecoder/repos","events_url":"https://api.github.com/users/kishorethecoder/events{/privacy}","received_events_url":"https://api.github.com/users/kishorethecoder/received_events","type":"User","site_admin":false},"created_at":"2018-02-23T08:59:02Z","updated_at":"2018-02-23T08:59:02Z","author_association":"NONE","body":"when i looked at the tui-editor source code for the change event, i found that Source parameter is required to find the editor mode in all the events. After changing the code  to include source parameter, the change event is getting fired\r\n````typescript\r\n  events:\r\n        {\r\n          change:(source)=>this.handleEditorChanges(source)\r\n        }\r\n````\r\n\r\nIt would be nice  to have the required things documented\r\n"}}
{"actor":{"display_login":"kishorethecoder"}}