{"action":"opened","issue":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/4125","repository_url":"https://api.github.com/repos/WordPress/gutenberg","labels_url":"https://api.github.com/repos/WordPress/gutenberg/issues/4125/labels{/name}","comments_url":"https://api.github.com/repos/WordPress/gutenberg/issues/4125/comments","events_url":"https://api.github.com/repos/WordPress/gutenberg/issues/4125/events","html_url":"https://github.com/WordPress/gutenberg/issues/4125","id":283894340,"number":4125,"title":"Freeform: Unrecoverable error if embed present","user":{"login":"mcsf","id":150562,"avatar_url":"https://avatars0.githubusercontent.com/u/150562?v=4","gravatar_id":"","url":"https://api.github.com/users/mcsf","html_url":"https://github.com/mcsf","followers_url":"https://api.github.com/users/mcsf/followers","following_url":"https://api.github.com/users/mcsf/following{/other_user}","gists_url":"https://api.github.com/users/mcsf/gists{/gist_id}","starred_url":"https://api.github.com/users/mcsf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcsf/subscriptions","organizations_url":"https://api.github.com/users/mcsf/orgs","repos_url":"https://api.github.com/users/mcsf/repos","events_url":"https://api.github.com/users/mcsf/events{/privacy}","received_events_url":"https://api.github.com/users/mcsf/received_events","type":"User","site_admin":false},"labels":[{"id":570263070,"url":"https://api.github.com/repos/WordPress/gutenberg/labels/Blocks","name":"Blocks","color":"fbca04","default":false},{"id":567487067,"url":"https://api.github.com/repos/WordPress/gutenberg/labels/[Component]%20TinyMCE","name":"[Component] TinyMCE","color":"fbca04","default":false},{"id":531680823,"url":"https://api.github.com/repos/WordPress/gutenberg/labels/[Type]%20Bug","name":"[Type] Bug","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-21T14:13:30Z","updated_at":"2017-12-21T14:13:30Z","closed_at":null,"author_association":"COLLABORATOR","body":"## Issue Overview\r\n\r\nOpening a classic post containing an embed with Gutenberg leads to a broken Freeform block.\r\n\r\n## Steps to Reproduce (for bugs)\r\n1. Start a new post with the classic editor.\r\n2. Insert a paragraph of text, then add a line break.\r\n3. Paste an embeddable URL, e.g. `https://wordpress.tv/2017/12/04/matt-mullenweg-state-of-the-word-2017/` or `https://www.youtube.com/watch?v=e-QFj59PON4`. An embed should correctly appear.\r\n4. Add a new paragraph beneath it.\r\n5. Save the post, as draft or published.\r\n6. Open the post with Gutenberg.\r\n\r\n## Expected Behavior\r\nThe original post should appear, looking more or less the same, contained in a Freeform block.\r\n\r\n## Current Behavior\r\nNo content appears, and a `TypeError` is logged:\r\n\r\n`TypeError: self.editor.iframeElement is undefined` in `mce-view.js:866:5`\r\n\r\n## Possible Solution\r\n\r\nHistory bisection suggests this isn't a recent regression — has it always been around? Error originates in Freeform > OldEditor > wp.oldEditor > TinyMCE. Not clear yet if error lies only in TinyMCE or in the interaction with OldEditor.\r\n\r\nFurther debugging shows that regular blocks still work and that the error is properly contained inside the Freeform block, even though the BlockCrashWarning isn't always shown:\r\n\r\n<img width=\"664\" alt=\"screen shot 2017-12-21 at 14 02 02\" src=\"https://user-images.githubusercontent.com/150562/34258881-e7355d68-e657-11e7-9334-4b92acbe8cea.png\">\r\n\r\n## Screenshots / Video\r\n<!-- Visual records are oxygen for others to understand what you are sharing -->\r\n\r\n## Related Issues and/or PRs\r\n<!-- List related issues or PRs against other branches -->\r\n\r\n## Todos\r\n- [ ] Tests\r\n- [ ] Documentation\r\n"}}
{"actor":{"display_login":"mcsf"}}