Freeform: Unrecoverable error if embed present #4125
Labels
[Feature] Blocks
Overall functionality of blocks
[Type] Bug
An existing feature does not function as intended
Issue Overview
Opening a classic post containing an embed with Gutenberg leads to a broken Freeform block.
Steps to Reproduce (for bugs)
https://wordpress.tv/2017/12/04/matt-mullenweg-state-of-the-word-2017/
orhttps://www.youtube.com/watch?v=e-QFj59PON4
. An embed should correctly appear.Expected Behavior
The original post should appear, looking more or less the same, contained in a Freeform block.
Current Behavior
No content appears, and a
TypeError
is logged:TypeError: self.editor.iframeElement is undefined
inmce-view.js:866:5
Possible Solution
History 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.
Further 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:
Screenshots / Video
Related Issues and/or PRs
Todos
The text was updated successfully, but these errors were encountered: