Describe the bug
After inserting an image and resizing it to 50% width, the style attribute on the component div is removed by core.cleanHTML().
To Reproduce
Steps to reproduce the behavior:
Insert an image
Use the image plugin controls to resize it to 50%
Click on the save button
Check textarea content for style attribute on the image component div (which is removed)
Expected behavior
I expect the style="width: 50%" attribute to remain intact. Or else loading the saved content in an editor instance will present an image with 100% width.
Desktop (please complete the following information):
OS: Mac OS X Ventura 13.6.1
Newest version of Firefox, Chroms or Safari (it happens in all browsers)
Additional context
I will provide a Pull request that adds the width attribute to _cleanStyleRegExp.format.
Describe the bug After inserting an image and resizing it to 50% width, the style attribute on the component div is removed by core.cleanHTML().
To Reproduce Steps to reproduce the behavior:
Expected behavior I expect the style="width: 50%" attribute to remain intact. Or else loading the saved content in an editor instance will present an image with 100% width.
Desktop (please complete the following information):
Additional context I will provide a Pull request that adds the width attribute to _cleanStyleRegExp.format.