thexerteproject / xerteonlinetoolkits

Xerte Online Toolkits
www.xerte.org.uk
Apache License 2.0
62 stars 61 forks source link

WYSIWYG captioned image width getting stripped out #1282

Closed FayCross closed 1 month ago

FayCross commented 2 months ago

Relative image dimensions are stripped out when images are captioned in WYSIWYG editor. You can recreate this by adding an image to a text field, adding some alt text, checking the caption image box and adding a relative width (e.g. 50%). Initially the image will be scaled as expected but after you move away to another page in the editor and then go back, the width and height will have been stripped out of the html so the image will show at its original size. This is only an issue when % is used in the width - if just numbers are used then the image scaling is not stripped out.

Reported on the forum