css - Redactor image upload set inline style -
i using redactor v10.0.9 allow users create custom posts web app. these posts rendered in iframe in modal, , need images uploaded have max-width of 100%. have tried maintain outside stylesheet append iframe contains
img { max-width: 100% !important; } }
but doesn't seem working @ all. add style="max-width: 100%"
inline style img tag when it's inserted, can't seem find image inserted post after image upload.
any ideas on how force these images in iframe max-width: 100%
? thanks
edit 1:
i using imagemanager
plugin upload images redactor. forgot mention that.
edit 2:
the content contained in iframe dynamically created html, not content domain.
figured out how this!
instead of appending sort of style img
tag on insertion, when render custom posts retrieving of images in iframe in javascript, , applying css attr of "max-width: 100%"
on each one.
Comments
Post a Comment