Image after uploading file

Image when editing in Editor

More Elaborately, i'm able to save my data in my backend with img Height, Width Attributes, but when i extract my editorState with " draftToHtml(convertToRaw(editorState.getCurrentContent()))) " i get Attributes as undefined

I swapped:
convertFromHTML to htmlToDraft when retrieving the HTML and no longer get the issue.
import draftToHtml from "draftjs-to-html";
const blocksFromHTML = htmlToDraft(contentFromDB);
const state = ContentState.createFromBlockArray(blocksFromHTML.contentBlocks, blocksFromHTML.entityMap);
const [contentState, setContentState] = useState(EditorState.createWithContent(state));
Most helpful comment
I swapped:
convertFromHTMLtohtmlToDraftwhen retrieving the HTML and no longer get the issue.