Image resize - class instead of inline style #2167

bennybee opened this Issue Dec 21, 2016 · 1 comment


None yet

2 participants


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


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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment