[wp-trac] [WordPress Trac] #42416: Code assumes iframe mode, exception in inline mode
WordPress Trac
noreply at wordpress.org
Tue Dec 5 14:43:57 UTC 2017
#42416: Code assumes iframe mode, exception in inline mode
-------------------------------------------+-------------------------
Reporter: programmin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.9.2
Component: TinyMCE | Version: 4.9
Severity: normal | Resolution:
Keywords: needs-patch reporter-feedback | Focuses: javascript
-------------------------------------------+-------------------------
Comment (by aduth):
This can be demonstrated in the Gutenberg editor, which uses inline mode
for rendering TinyMCE, including the Classic Text block. The related issue
has been reported here:
https://github.com/WordPress/gutenberg/issues/3568
The above patch changes the behavior to retrieve `clientWidth` from the
body element, which supports both iframe and inline modes, and should
recreate the expected behavior of assigning an embed maximum width
corresponding to the available width of the editor body.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42416#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list