Add figure tag onImageUpload #2188

Open
ConstantMath opened this Issue Jan 11, 2017 · 3 comments

Projects

None yet

2 participants

@ConstantMath

Hi,
Is there a way to encapsulate the tag inside a

when I call the onImageUpload function ?

Many thanks

@StudioJunkyard

I'm thinking of adding this ability, along with a caption into the summernote-image-attributes plugin.

@ConstantMath

Ok, thanks for your reply.
Indeed, captions could be nice too ;-)

@StudioJunkyard

I found a script and added it into https://github.com/StudioJunkyard/summernote-image-attributes
The script adds a new button to the image popup that wraps the image with figure and uses the TITLE or ALT text in the figcaption.

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