sstur / ck-dragresize

CKEditor dragable image resizing
MIT License
60 stars 25 forks source link

Whether it would be better use 'width', 'height' attribute for IMG element? #15

Open ika18 opened 10 years ago

ika18 commented 10 years ago

In some case, use ckeditor as an online email editor. It works fine in view email in web client. But view email in some email client, such as outlook, the IMG size doesn't work properly.

sstur commented 10 years ago

I tried this, but CKEditor automatically changes size attributes to styles, so I went with that. I think the solution to your use case might be to programatically add the width/height attributes before submitting the content. You should be able to attach an event listener in CKEditor to modify the content at the right time.

ika18 commented 10 years ago

Hi @sstur , thanks for your reply. I create pull request #16 to describe my thought clearly. Could you please take a look into this when you are free. Thanks again!