Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align center to an image not working in preview #63

Open
dskumar001 opened this issue Jun 12, 2015 · 1 comment
Open

Align center to an image not working in preview #63

dskumar001 opened this issue Jun 12, 2015 · 1 comment

Comments

@dskumar001
Copy link

Hi,
I have found an issue related to align center to an image.
When i click align center for image and then preview it. we are not able to apply align center to that image.

Can you please look into that whether the issue really exists or not

Thanks

@neokoenig
Copy link
Owner

This is because the RTE adds inline styles which get stripped, and GM adds .img-responsive which does width:100% auto; This is actually fixed in 0.3.2 in a way, as in you can disable this behaviour by removing the default img-responsive option

    // Add this class to every img
    addImgClass: "img-responsive",

(i.e, pass addImgClass: "" as an option on init())

This will stop images being automatically responsive though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants