File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
packages/volto-iframe-block/src/components Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 11import cx from 'classnames' ;
22import React from 'react' ;
3+ import { serializeNodes } from '@plone/volto-slate/editor/render' ;
34
45import { isValidUrl } from '@kitconcept/volto-iframe-block/helpers/isValidUrl' ;
56
@@ -29,7 +30,12 @@ const IframeView = (props) => {
2930 { data . description && (
3031 < div className = "description" > { data . description } </ div >
3132 ) }
32- { data . credit && < div className = "credit" > Credit: { data . credit } </ div > }
33+ { data . credit && (
34+ < div className = "credit" >
35+ Credit:{ ' ' }
36+ < div dangerouslySetInnerHTML = { { __html : data . credit . data } } />
37+ </ div >
38+ ) }
3339 </ figcaption >
3440 </ figure >
3541 </ div >
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ export const IframeBlockSchema = (props) => ({
8787 } ,
8888 credit : {
8989 title : 'Credit' ,
90- widget : 'text ' ,
90+ widget : 'richtext ' ,
9191 } ,
9292 width : {
9393 title : props . intl . formatMessage ( messages . Width ) ,
You can’t perform that action at this time.
0 commit comments