📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-21 07:30:35
📂
/ (Root)
/
home
/
xeqi7597
/
cds.claireduwig.com
/
wp-content
/
plugins
/
generateblocks
/
src
/
blocks
/
headline
/
components
📍 /home/xeqi7597/cds.claireduwig.com/wp-content/plugins/generateblocks/src/blocks/headline/components
🔄 Refresh
✏️
Editing: InspectorAdvancedControls.js
Writable
import { InspectorAdvancedControls } from '@wordpress/block-editor'; import HTMLAnchor from '../../../components/html-anchor'; import TagName from './TagName'; export default ( props ) => { const { attributes, setAttributes, } = props; const { isCaption, element, marginTop, marginRight, marginBottom, marginLeft, marginUnit, } = attributes; return ( <InspectorAdvancedControls> <HTMLAnchor { ...props } /> <TagName isCaption={ isCaption } tagName={ element } onChange={ ( value ) => { setAttributes( { element: value, } ); if ( ! marginTop && ! marginRight && ! marginBottom && ! marginLeft ) { if ( 'p' === value ) { setAttributes( { marginUnit: 'em' } ); } else { setAttributes( { marginUnit } ); } } } } /> </InspectorAdvancedControls> ); };
💾 Save Changes
❌ Cancel