DennisSuitters / summernote-image-attributes

Summernote plugin to edit image attributes
MIT License
89 stars 89 forks source link

Image with caption - float left or right causes the caption to shift out from under the image #65

Open henryder opened 3 years ago

henryder commented 3 years ago

With a caption under the image, when text is wrapped using float left or right, the caption shifts out from under image. Also when there is a long caption, it does not stay within the width of the image, but goes beyond it. Something that may be fixable with CSS style sheet for the figure tags? Or better yet, if your code could be modified to handle the changes necessary.

DennisSuitters commented 3 years ago

Using CSS would be the best option, keep in mind the content inside the Summernote editing area uses the default styling of the page the editor resides in, well, mostly, if your using Bootstrap, it should use whatever Bootstrap's styling is. Apologies for not responding sooner.

Ewoudowitz commented 3 months ago

The Summernote float option works on the img element, as the caption works on the figure element. Is there a solution to get the float on the figure (and removed from img) when a figure element is already placed?