Opened 14 years ago

Closed 14 years ago

#5430 closed Bug (worksforme)

Cannot insert <img> without losing width and size info.

Reported by: Matty Brown Owned by:
Priority: Normal Milestone:
Component: General Version: 3.2
Keywords: Pending Cc:


Whenever I insert a new image and set its custom size, CKEditor adds style="width: 1px; height: 1px;. When submitted, the style attribute is missing. If I manually change the code to width="1" and height="1" in source view, those attributes are kept.

Change History (2)

comment:1 Changed 14 years ago by Garry Yao

Component: Core : Output DataGeneral
Keywords: Pending added; html style width height removed

WFM, could you provide an example to reproduce?

comment:2 Changed 14 years ago by Matty Brown

Resolution: worksforme
Status: newclosed

After many hours of trying to figure out what's wrong, I finally came across this line of code in one of our ColdFusion pages - <cf_cleanmsrubbish msrubbish="#Attributes.Content#">. This is what was removing the style/width/weight details.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy