{"action":"created","issue":{"url":"https://api.github.com/repos/tinymce/tinymce/issues/2722","repository_url":"https://api.github.com/repos/tinymce/tinymce","labels_url":"https://api.github.com/repos/tinymce/tinymce/issues/2722/labels{/name}","comments_url":"https://api.github.com/repos/tinymce/tinymce/issues/2722/comments","events_url":"https://api.github.com/repos/tinymce/tinymce/issues/2722/events","html_url":"https://github.com/tinymce/tinymce/issues/2722","id":135740462,"number":2722,"title":"Cannot read property 'body' of undefined","user":{"login":"valchanin","id":12893937,"avatar_url":"https://avatars3.githubusercontent.com/u/12893937?v=4","gravatar_id":"","url":"https://api.github.com/users/valchanin","html_url":"https://github.com/valchanin","followers_url":"https://api.github.com/users/valchanin/followers","following_url":"https://api.github.com/users/valchanin/following{/other_user}","gists_url":"https://api.github.com/users/valchanin/gists{/gist_id}","starred_url":"https://api.github.com/users/valchanin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valchanin/subscriptions","organizations_url":"https://api.github.com/users/valchanin/orgs","repos_url":"https://api.github.com/users/valchanin/repos","events_url":"https://api.github.com/users/valchanin/events{/privacy}","received_events_url":"https://api.github.com/users/valchanin/received_events","type":"User","site_admin":false},"labels":[{"id":279558675,"url":"https://api.github.com/repos/tinymce/tinymce/labels/component:%20integration","name":"component: integration","color":"bfe5bf","default":false},{"id":300326479,"url":"https://api.github.com/repos/tinymce/tinymce/labels/needs:%20fix%20by%203rd%20party","name":"needs: fix by 3rd party","color":"fad8c7","default":false},{"id":279311469,"url":"https://api.github.com/repos/tinymce/tinymce/labels/status:%20verified","name":"status: verified","color":"fbca04","default":false},{"id":279311465,"url":"https://api.github.com/repos/tinymce/tinymce/labels/type:%20bug","name":"type: bug","color":"555555","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":28,"created_at":"2016-02-23T13:40:16Z","updated_at":"2018-05-08T00:54:15Z","closed_at":"2018-05-08T00:49:04Z","author_association":"NONE","body":"Sometimes exception occurs in\n`getBody: function() { return this.bodyElement || this.getDoc().body; }`\n\n`getDoc` returns undefined.\n`getDoc` should return .document for iframe. But sometimes iframe is not created.\n\niframe is created by the following method:\n\n```\n/**\n* Initializes the editor this will be called automatically when all plugins/themes and language packs are loaded by the rendered method.\nThis method will setup the iframe and create the theme and plugin instances.\n*\n* @method init\n*/\ninit: function() {\n```\n\nSo I think getBody is called before all plugins are loaded.\n"},"comment":{"url":"https://api.github.com/repos/tinymce/tinymce/issues/comments/387250979","html_url":"https://github.com/tinymce/tinymce/issues/2722#issuecomment-387250979","issue_url":"https://api.github.com/repos/tinymce/tinymce/issues/2722","id":387250979,"user":{"login":"PandaWood","id":41550,"avatar_url":"https://avatars0.githubusercontent.com/u/41550?v=4","gravatar_id":"","url":"https://api.github.com/users/PandaWood","html_url":"https://github.com/PandaWood","followers_url":"https://api.github.com/users/PandaWood/followers","following_url":"https://api.github.com/users/PandaWood/following{/other_user}","gists_url":"https://api.github.com/users/PandaWood/gists{/gist_id}","starred_url":"https://api.github.com/users/PandaWood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PandaWood/subscriptions","organizations_url":"https://api.github.com/users/PandaWood/orgs","repos_url":"https://api.github.com/users/PandaWood/repos","events_url":"https://api.github.com/users/PandaWood/events{/privacy}","received_events_url":"https://api.github.com/users/PandaWood/received_events","type":"User","site_admin":false},"created_at":"2018-05-08T00:54:14Z","updated_at":"2018-05-08T00:54:14Z","author_association":"NONE","body":"@Afraithe probably fair, though I'm not using Angular - is there an assumption that everyone here is using Angular?"}}
{"actor":{"display_login":"PandaWood"}}