Open altafhpatel opened 4 years ago
edit: ({attributes,setAttributes}) => { function onChangeHeading(heading){ setAttributes({heading : heading}); } function onChangeText(text){ setAttributes({text : text}); } function onSelectImage(image){ setAttributes({imageUrl:image.url}) } return (
); }, save: ({attributes}) => { return ( <div className="icon-box"> <div className="col-sm-3"> <img src={attributes.imageUrl} /> <RichText.Content tagName="h2" value={attributes.heading}/> <RichText.Content tagName="p" value={attributes.text} /> </div> </div>); },
when i remove that col-sm-3 div it save why ?
edit: ({attributes,setAttributes}) => { function onChangeHeading(heading){ setAttributes({heading : heading}); } function onChangeText(text){ setAttributes({text : text}); } function onSelectImage(image){ setAttributes({imageUrl:image.url}) } return (
when i remove that col-sm-3 div it save why ?