diff --git a/packages/block-library/src/media-text/edit.js b/packages/block-library/src/media-text/edit.js index 41134d2693c4af..5ecc79f02cd643 100644 --- a/packages/block-library/src/media-text/edit.js +++ b/packages/block-library/src/media-text/edit.js @@ -22,6 +22,7 @@ import { } from '@wordpress/block-editor'; import { PanelBody, + RangeControl, TextareaControl, ToggleControl, ToolbarButton, @@ -49,6 +50,7 @@ const TEMPLATE = [ }, ], ]; + // this limits the resize to a safe zone to avoid making broken layouts const WIDTH_CONSTRAINT_PERCENTAGE = 15; const applyWidthConstraints = ( width ) => @@ -276,6 +278,15 @@ function MediaTextEdit( { attributes, isSelected, setAttributes } ) { isResizable={ false } /> ) } + { mediaUrl && ( + + ) } );