{"id":16865435,"url":"https://github.com/dennissuitters/summernote-image-captionit","last_synced_at":"2025-04-11T11:07:26.666Z","repository":{"id":87646516,"uuid":"79345607","full_name":"DennisSuitters/summernote-image-captionit","owner":"DennisSuitters","description":"Adds Button to Image Popup that allows adding Figure and FigCaption from TITLE or ALT tags.","archived":false,"fork":false,"pushed_at":"2020-12-29T06:19:06.000Z","size":8,"stargazers_count":9,"open_issues_count":2,"forks_count":12,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-09T04:04:00.665Z","etag":null,"topics":["addon","captions","figcaption","figure","image","plugin","summernote","toolbar","wysiwyg"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DennisSuitters.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-01-18T14:04:59.000Z","updated_at":"2023-01-16T18:33:51.000Z","dependencies_parsed_at":"2024-01-13T11:13:29.212Z","dependency_job_id":null,"html_url":"https://github.com/DennisSuitters/summernote-image-captionit","commit_stats":null,"previous_names":["dennissuitters/summernote-image-captionit","diemendesign/summernote-image-captionit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DennisSuitters%2Fsummernote-image-captionit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DennisSuitters%2Fsummernote-image-captionit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DennisSuitters%2Fsummernote-image-captionit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DennisSuitters%2Fsummernote-image-captionit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DennisSuitters","download_url":"https://codeload.github.com/DennisSuitters/summernote-image-captionit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248381760,"owners_count":21094525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["addon","captions","figcaption","figure","image","plugin","summernote","toolbar","wysiwyg"],"created_at":"2024-10-13T14:47:04.677Z","updated_at":"2025-04-11T11:07:26.614Z","avatar_url":"https://github.com/DennisSuitters.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# summernote-image-captionit\nAdds a button to the Image Popover that will use the TITLE or ALT depending which is used, places that text into a `figcaption` and wraps the `img` and `figcaption` within a `figure` element, ala HTML5 like:\n````html\n\u003cfigure class=\"{inserted class from option}\"\u003e\n    \u003cimg src=\"image.jpg\" title=\"uses this first\" alt=\"uses this if title is empty\"\u003e\n    \u003cfigcaption class=\"{inserted class from option}\"\u003ecaption used from title or alt if title is empty or the default text in the captionTitle option.\u003c/figcaption\u003e\n\u003c/figure\u003e\n````\n\n### Installation\n\n#### 1. Include JS\n\nInclude the following code after including Summernote:\n\n```html\n\u003cscript src=\"summernote-image-captionit.js\"\u003e\u003c/script\u003e\n```\n\n#### 2. Supported languages\nCurrently available in English!\n\n#### 3. Summernote options\nFinally, customize the Summernote image popover.\n\n```javascript\n$(document).ready(function() {\n    $('#summernote').summernote({\n        popover: {\n            image: [\n                ['custom', ['captionIt']],\n                ['imagesize', ['imageSize100', 'imageSize50', 'imageSize25']],\n                ['float', ['floatLeft', 'floatRight', 'floatNone']],\n                ['remove', ['removeMedia']]\n            ],\n        },\n        captionIt:{\n            figureClass:'{figure-class/es}',\n            figcaptionClass:'{figcapture-class/es}',\n            captionText:'{Default Caption Editable Placeholder Text if Title or Alt are empty}'\n        }\n    });\n});\n```\n\n#### 4. Check out our other Summernote Plugins via our main Github page.\n- [Diemen Design](https://github.com/DiemenDesign/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdennissuitters%2Fsummernote-image-captionit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdennissuitters%2Fsummernote-image-captionit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdennissuitters%2Fsummernote-image-captionit/lists"}