Image resize - class instead of inline style #2167

Open
bennybee opened this Issue Dec 21, 2016 · 1 comment

Projects

None yet

2 participants

@bennybee

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%;")

@StudioJunkyard

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