[wp-trac] [WordPress Trac] #40854: Allow media to be embedded in Text widget
WordPress Trac
noreply at wordpress.org
Fri Oct 6 00:09:41 UTC 2017
#40854: Allow media to be embedded in Text widget
-------------------------------------+-----------------------
Reporter: alexvorn2 | Owner: azaozz
Type: task (blessed) | Status: assigned
Priority: high | Milestone: 4.9
Component: Widgets | Version: 4.8
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: ui
-------------------------------------+-----------------------
Comment (by westonruter):
@azaozz Actually I'm seeing oEmbed previews work, but only when the
`embed` shortcode is used. The thing I'm not seeing is the URL expansion
to embeds.
Nevertheless, I am seeing an issue with the embed shortcode previews.
If I try pasting `[embed]https://youtu.be/KU_Jdts5rL0[/embed]` into the
Visual tab of the Text widget, I get an error inside of `mce-view.js`. See
[attachment:error-upon-pasting-embed-shortcode.png].
Otherwise, if I try pasting the same `embed` into the Text tab and then
switch to Visual, I get a different error in `editor.js` via the
`scrollVisualModeToStartElement`. See [attachment:error-upon-switch-to-
visual-tab-containing-embed.png].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40854#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list