Editor configured with MediaEmbed + MediaEmbedStyle (no
MediaEmbedResize) and the default five-built-in style set. The page stylesheet
caps the YouTube figure at max-width: 50%, simulating a scenario where the
figure's width comes from outside the resize feature (custom integrator CSS,
GeneralHtmlSupport preserving inline styles, custom upcast, etc.). The Spotify embed is
unaffected by that rule and demos a different width source: its built-in 300px default.
The selected figure should have a contextual toolbar with Break text and Wrap text dropdowns.
<figure> should be class="media" only, with no
alignment class.
media_resized<figure> should include
media-style-block-align-left (no media_resized class, because
the resize plugin is not loaded),
<figure> should include media-style-align-left,
editor.getData(): the output should contain only
media-style-* classes; no media_resized, no
style="width: …" (the resize feature is not loaded).
Default centering — no alignment class on the figure below.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Spotify embeds default to a 300px wide figure.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.