{"id":16865379,"url":"https://github.com/dennissuitters/summernote-save-button","last_synced_at":"2025-04-11T11:08:45.462Z","repository":{"id":65398660,"uuid":"53999586","full_name":"DennisSuitters/summernote-save-button","owner":"DennisSuitters","description":"Adds a Save Button when Summenote is used within a form","archived":false,"fork":false,"pushed_at":"2020-12-29T06:46:43.000Z","size":24,"stargazers_count":13,"open_issues_count":0,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-19T05:54:17.111Z","etag":null,"topics":["addon","plugin","save","summernote","summernote-plugins","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}},"created_at":"2016-03-16T04:00:15.000Z","updated_at":"2023-01-31T16:42:11.000Z","dependencies_parsed_at":"2023-01-21T13:45:15.979Z","dependency_job_id":null,"html_url":"https://github.com/DennisSuitters/summernote-save-button","commit_stats":null,"previous_names":["dennissuitters/summernote-save-button","diemendesign/summernote-save-button"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DennisSuitters%2Fsummernote-save-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DennisSuitters%2Fsummernote-save-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DennisSuitters%2Fsummernote-save-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DennisSuitters%2Fsummernote-save-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DennisSuitters","download_url":"https://codeload.github.com/DennisSuitters/summernote-save-button/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248381761,"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","plugin","save","summernote","summernote-plugins","toolbar","wysiwyg"],"created_at":"2024-10-13T14:46:52.865Z","updated_at":"2025-04-11T11:08:45.431Z","avatar_url":"https://github.com/DennisSuitters.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# summernote-save-button\nA plugin for the [Summernote](https://github.com/summernote/summernote/) WYSIWYG editor.\n\nAdds a button to the Toolbar, that allows saving edited content when Summernote is placed within a Form.\nIncludes option to encode data (it's up to you to decode the data server side).\n\n### Installation\n\n#### 1. Include JS\n\nInclude the following code after Summernote:\n\n```html\n\u003cscript src=\"summernote-save-button.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"lang/[language-COUNTRY].js\"\u003e\u003c/script\u003e\n```\n\n#### 2. Supported languages\n\nSupported languages can be found in the `lang` folder, and should be included after the plugin, then setting the chosen language when initialising Summernote.\n\n#### 3. Summernote options\n\nThis is the HTML used directly in the page:\n```html\n\u003cform id=\"summernote\" method=\"post\" target=\"sp\" action=\"[processing server side script]\"\u003e\n\u003c!-- The target=\"sp\" makes the form submit to the hidden iframe, giving an ajax, and non page reloading affect.\n     action=\"[processing server side script]\" is the script to target to process the form data. --\u003e\n    \u003cinput type=\"hidden\" name=\"id\" value=\"[database entry id or reference]\"\u003e\n\u003c!-- The name \"id\" and value is what I use to reference the article or content reference. --\u003e\n    \u003cinput type=\"hidden\" name=\"t\" value=\"content\"\u003e\n\u003c!-- The \"t\" (table) and value is the name of the database table. --\u003e\n    \u003cinput type=\"hidden\" name=\"c\" value=\"notes\"\u003e\n\u003c!-- The \"c\" (column) and value is the name of the column in the database table. --\u003e\n    \u003ctextarea id=\"notes\" class=\"form-control summernote\" name=\"da\" readonly\u003e[content data to be edited]\u003c/textarea\u003e\n\u003c!-- The \"da\" holds the content data from the editor to be maniupulated upon form submit. --\u003e\n\u003c/form\u003e\n\u003ciframe id=\"sp\" name=\"sp\" class=\"hidden\"\u003e\u003c/iframe\u003e\n\u003c!-- This is the hidden iframe using Bootstrap 3's \".hidden\" class to hide the iframe. Use \".d-none\" if using Bootstrap 4. --\u003e\n```\n\nFinally, customize the Summernote Toolbar, this can be used directly in your page:\n```javascript\n$('.summernote').summernote({\n    toolbar: [\n        ['save', ['save']], // The button\n    ],\n    save:{\n      lang: 'en-US', // Change to your chosen language\n      encode: false, // true = encode editor data, you may need to unencode the data on your backend or before output.\n      pageBlockClass: '.page-block', // Leave empty if not using an overlay to block user activity while data is sent.\n      pageBlockToggle: 'd-block', // Class to use to toggle Page Block. Remove the class via backend once data is safely stored.\n      saveBtnIndicator: 'btn-danger', // Class to change save button indication when content changes to warn of unsaved data.\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-save-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdennissuitters%2Fsummernote-save-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdennissuitters%2Fsummernote-save-button/lists"}