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 with caption - float left or right causes the caption to shift out from under the image #65

Open
henryder opened this issue Jan 22, 2021 · 2 comments

Comments

@henryder
Copy link

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
Copy link
Owner

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
Copy link

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?

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

3 participants