diff --git a/packages/block-library/src/media-text/edit.js b/packages/block-library/src/media-text/edit.js index 41134d2693c4af..4ffe51ef76821c 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,21 @@ const TEMPLATE = [ }, ], ]; + +const WIDTH_SCALE_MARKS = [ + { + value: 25, + label: '25%', + }, + { + value: 50, + label: '50%', + }, + { + value: 75, + label: '75%', + }, +]; // this limits the resize to a safe zone to avoid making broken layouts const WIDTH_CONSTRAINT_PERCENTAGE = 15; const applyWidthConstraints = ( width ) => @@ -276,6 +292,16 @@ function MediaTextEdit( { attributes, isSelected, setAttributes } ) { isResizable={ false } /> ) } + { mediaUrl && ( + + ) } );