import { bokez } from '../../global' const { __ } = wp.i18n; const { Component } = wp.element; const { PanelColorSettings, InspectorControls, AlignmentToolbar, BlockControls, RichText, } = wp.editor; const { SelectControl, RangeControl, } = wp.components; export class Edit extends Component{ render(){ const { isSelected, setAttributes, } = this.props const { textColor, alignment, backgroundColor, borderPosition, borderSize, borderColor, quote, cite } = this.props.attributes const style = { 'text-align': alignment, 'background-color': backgroundColor, 'color': textColor, [ 'border-' + borderPosition ]: borderSize + 'px solid ' + borderColor, }; return [ isSelected && ( setAttributes( { alignment: nextAlign } ) } /> ), isSelected && (
setAttributes( { borderPosition: newBorderPosition } ) } /> setAttributes( { borderSize: newBorderSize } ) } /> setAttributes( { borderColor: newColor } ), } ] } > setAttributes( { backgroundColor: newColor } ), } ] } > setAttributes( { textColor: newColor } ), } ] } >
),
setAttributes( { quote: newQuote } ) } /> setAttributes( { cite: newCite } ) } />
]; } }