{"id":13774265,"url":"https://github.com/MarcosBL/summernote-floats-bs","last_synced_at":"2025-05-11T06:32:43.987Z","repository":{"id":42220996,"uuid":"59494548","full_name":"MarcosBL/summernote-floats-bs","owner":"MarcosBL","description":"Bootstrap Floats for Summernote WYSIWYG Editor","archived":false,"fork":false,"pushed_at":"2016-05-23T18:57:39.000Z","size":73,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-02-15T09:32:18.257Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MarcosBL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-23T15:32:53.000Z","updated_at":"2021-12-05T02:43:58.000Z","dependencies_parsed_at":"2022-08-27T12:32:04.275Z","dependency_job_id":null,"html_url":"https://github.com/MarcosBL/summernote-floats-bs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcosBL%2Fsummernote-floats-bs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcosBL%2Fsummernote-floats-bs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcosBL%2Fsummernote-floats-bs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcosBL%2Fsummernote-floats-bs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarcosBL","download_url":"https://codeload.github.com/MarcosBL/summernote-floats-bs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225022069,"owners_count":17408548,"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":[],"created_at":"2024-08-03T17:01:25.171Z","updated_at":"2024-11-17T09:30:42.369Z","avatar_url":"https://github.com/MarcosBL.png","language":"HTML","funding_links":[],"categories":["Plugins"],"sub_categories":["Misc"],"readme":"## Bootstrap Floats for [Summernote WYSIWYG Editor](http://summernote.org/)\n\nReplace (or extend) image popover buttons (using float: attributes) with a new set of buttons that inject proper Bootstrap classes (pull-right / pull-left / none) while keeping any other class in the image.\n\nThis not only keeps Bootstrap naming convention, but makes it much easier to style margins/paddings/etc on floated images, as you can just target the classes.\n\nYou can try a demo at http://marcosbl.github.io/summernote-floats-bs/demo/\n\n![Screenshot](screenshot.jpg?raw=true \"Screenshot\")\n\n## Installation\n\nFirst include ````summernote-floats-bs.js```` or it's minified version ````summernote-floats-bs.min.js```` after ````summernote````\n\n```html\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.1/jquery.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.1/summernote.min.js\"\u003e\u003c/script\u003e\n\n\u003cscript src=\"summernote-floats-bs.min.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\nThen just initialize the toolbar replacing the float buttons ```( floatBSLeft / floatBSRight / floatBSNone )```\n\n```js\n$(document).ready(function() {\n\t$('#texto').summernote({\n\t\tlang: 'en-US',\n\t\tdialogsInBody: true,\n\t\tpopover: {\n\t\t\timage: [\n\t\t\t['imagesize', ['imageSize100', 'imageSize50', 'imageSize25']],\n\t\t\t/* ['float', ['floatLeft', 'floatRight', 'floatNone']], */\n\t\t\t/* Those are the old regular float buttons */\n\t\t\t['floatBS', ['floatBSLeft', 'floatBSNone', 'floatBSRight']],\n\t\t\t/* Those come from the BS plugin, in any order, you can even keep both! */\n\t\t\t['remove', ['removeMedia']],\n\t\t\t],\n\t\t}\n\t});\n});\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMarcosBL%2Fsummernote-floats-bs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMarcosBL%2Fsummernote-floats-bs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMarcosBL%2Fsummernote-floats-bs/lists"}