Skip to content

Commit e3a3637

Browse files
committed
fix: remove float from imaage tag for image type assets
1 parent fda7929 commit e3a3637

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/toRedactor.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -456,9 +456,9 @@ export const toRedactor = (jsonValue: any,options?:IJsonToHtmlOptions) : string
456456
styleObj["width"] = "auto";
457457
}
458458
delete styleObj["float"];
459-
(attrsJson["style"] && typeof attrsJson["style"] === 'string')
460-
? (attrsJson["style"] += getStyleStringFromObject(styleObj))
461-
: (attrsJson["style"] = getStyleStringFromObject(styleObj));
459+
// (attrsJson["style"] && typeof attrsJson["style"] === 'string')
460+
// ? (attrsJson["style"] += getStyleStringFromObject(styleObj)) :
461+
(attrsJson["style"] = getStyleStringFromObject(styleObj));
462462
}
463463
delete attrsJson['display-type']
464464
}

0 commit comments

Comments
 (0)