One issue I am facing is with CKEditor, where images inserted into Rich Text Fields have their height and width attributes set in a CSS style tag. For example:
<img
alt=""
src="https://something.cloudfront.net/something.jpg"
style="height:402px; width:716px"
/>
However, when I display the content in Angular using:
<p class="card-text" [innerHTML]="blogEntry.content"></p>
The inline CSS for height and width properties is not included:
<img alt="" src="https://something.cloudfront.net/something.jpg">
This causes the image to be displayed in its original size, ignoring the height and width settings from CKEditor.
I need a solution that preserves the height and width properties. Any suggestions on how to address this problem would be greatly appreciated. Thank you.