Skip to content

Commit

Permalink
fix: remove float from imaage tag for image type assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayesh2812 committed Nov 8, 2023
1 parent fda7929 commit e3a3637
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/toRedactor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -456,9 +456,9 @@ export const toRedactor = (jsonValue: any,options?:IJsonToHtmlOptions) : string
styleObj["width"] = "auto";
}
delete styleObj["float"];
(attrsJson["style"] && typeof attrsJson["style"] === 'string')
? (attrsJson["style"] += getStyleStringFromObject(styleObj))
: (attrsJson["style"] = getStyleStringFromObject(styleObj));
// (attrsJson["style"] && typeof attrsJson["style"] === 'string')
// ? (attrsJson["style"] += getStyleStringFromObject(styleObj)) :
(attrsJson["style"] = getStyleStringFromObject(styleObj));
}
delete attrsJson['display-type']
}
Expand Down
Loading

0 comments on commit e3a3637

Please sign in to comment.