Skip to content

Commit c150ad4

Browse files
committed
fix: RT-253 add missing url for images
1 parent 48a8edd commit c150ad4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/toRedactor.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,9 @@ export const toRedactor = (jsonValue: any,options?:IJsonToHtmlOptions) : string
478478
if (jsonValue['type'] === "style") {
479479
delete attrsJson['style-text']
480480
}
481+
if(jsonValue['type'] === 'img'){
482+
attrsJson['src'] = allattrs['url']
483+
}
481484
if(!(options?.customElementTypes && !isEmpty(options.customElementTypes) && options.customElementTypes[jsonValue['type']])) {
482485
delete attrsJson['url']
483486
}

0 commit comments

Comments
 (0)