Is there a way to encapsulate the tag inside a
I'm thinking of adding this ability, along with a caption into the summernote-image-attributes plugin.
Ok, thanks for your reply.
Indeed, captions could be nice too ;-)
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.