Patrick
Patrick

Reputation: 69

CKEditor image width and height as HTML attribute in stead of inline styling

I´m making an email program website which allows you to upload images. You can resize the image but it will be written as inline styling: style="width: X; heigth: X".

When you want to preview your email inside outlook the image will be shown with full width and height.

So instead of

<img src="x" style="width: x; heigth: x";>

I want

<img src="x" width="x" heigth="x">

I'm currently using the latest version of CKEditor: V4.7.3

Upvotes: 2

Views: 2959

Answers (1)

Related Questions