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

Image resize - class instead of inline style #2167

Closed
bennybee opened this issue Dec 21, 2016 · 1 comment
Closed

Image resize - class instead of inline style #2167

bennybee opened this issue Dec 21, 2016 · 1 comment

Comments

@bennybee
Copy link

My CMS strips inline styles from textareas, so when an image is added to a Summernote instance the chosen size/float choices aren't preserved.

Is there a way to manually intercept the size buttons to add classes instead of inline styles (eg class="sn-width-half" instead of style="width:50%;")

@ghost
Copy link

ghost commented Dec 21, 2016

You can use the summernote-image-attributes plugin found in the awesome-summernote repo.

https://github.com/summernote/awesome-summernote

https://github.com/StudioJunkyard/summernote-image-attributes

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