{"_id":"@emericklaw/summernote-cleaner","name":"@emericklaw/summernote-cleaner","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.5":{"_from":"git+https://github.com/emericklaw/summernote-cleaner.git#v1.0.5","_inBundle":false,"_integrity":"","_location":"/summernote-cleaner","_phantomChildren":{},"_requested":{"type":"git","raw":"git+https://github.com/emericklaw/summernote-cleaner.git#v1.0.5","rawSpec":"git+https://github.com/emericklaw/summernote-cleaner.git#v1.0.5","saveSpec":"git+https://github.com/emericklaw/summernote-cleaner.git#v1.0.5","fetchSpec":"https://github.com/emericklaw/summernote-cleaner.git","gitCommittish":"v1.0.5"},"_requiredBy":["#USER","/"],"_resolved":"git+https://github.com/emericklaw/summernote-cleaner.git#b8a09537f4a16d9c3d901beeeabc1a3df45fd029","_spec":"git+https://github.com/emericklaw/summernote-cleaner.git#v1.0.5","_where":"/home/emericklaw/companyupdates","author":{"name":"DiemenDesign"},"bugs":{"url":"https://github.com/DiemenDesign/summernote-cleaner/issues"},"dependencies":{"summernote":"^0.8.2"},"deprecated":false,"description":"A plugin for the Summernote WYSIWYG editor.","homepage":"https://github.com/DiemenDesign/summernote-cleaner#readme","keywords":["summernote"],"license":"MIT","main":"summernote-cleaner.js","name":"@emericklaw/summernote-cleaner","repository":{"type":"git","url":"git+https://github.com/DiemenDesign/summernote-cleaner.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"version":"1.0.5","_id":"@emericklaw/summernote-cleaner@1.0.5","_nodeVersion":"12.22.12","_npmVersion":"6.14.16","dist":{"integrity":"sha512-ORQyXu8SUaQX9vLpQSNvRnJfkNNZBZ8GGgAJSZbAChrAD8NgRyj3ZoXkwuQDLrqgMf3sfQKvyHxeYBXOPVgbyA==","shasum":"e3bf5b68d59d68aba8ef2a13e0b626d5e752a851","tarball":"https://registry.npmjs.org/@emericklaw/summernote-cleaner/-/summernote-cleaner-1.0.5.tgz","fileCount":6,"unpackedSize":21125,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcffZsHWvENZEkNfqqE0qCDARlUa5P4/X4aTTV3ohHOQIgHfG7mBEyeM4srl30CBetO0+el97S3/yO6Es9dUGIQLk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi3qNPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqKYA/7B3xx2ZT8uOW7lasgLhggxV2LG1JnMmY9T5l/TOvoXnMkfT5O\r\nkrVRv744sbjRah6XpXpT+CJSdxb2d4R+crDon12xEzJ81ugydxWtxi6i4zQW\r\n7tLepwS8FzU2S0OYz03QNRLi7D4MQZAMpWL5pdEcTcqo9wo/L7at0zONNlNz\r\npe2kWlHwenOKFHdgPkCl/y5CfNmJ1IvCmI71EVThMkp4d5r67K7GarewTCoK\r\nK/mOpiBvVO/9/bV9/Cgq5MlO/sBkKB9LimZ1XIiAWue+OexoTAh6+y3HKYgE\r\nZ1r8TS+Yavh1gkdQ2oA4o5PtRcWTSCNnxDNWBH3WQxePIjKOYo+XFdfQAAE7\r\nLVaGsmJglcGLs+f4WA7o3pc3IjzTA+V72rsEHcrFpzS3EH0WElp9WCx0LtfC\r\nQiuop/KpYeJvNwRas/r6UbJieLC+pVaYjxDatUh+4pfiSip291ewFhjDWru0\r\n+aHUYyiysBCeOtT0JfXIx8YmJnDiXNYX5ykQ0MZLU3Zb89AdIZKpgmrRziuA\r\nL2U97F5ItwBR6hjr2YkYo2ILPamj41FsoMkZqpVEzCWQqY/wuvS//kVgTmH5\r\nB9iDDFSz75f1E7HVGmFwyidE7AM0aDvzdIatIIzXDQUyOgS50ys2+zUTekfC\r\nmIy2DbECOKUPUilhBpmpVfQj3WJmAZ7Rims=\r\n=IGfh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"emericklaw","email":"matt@emericklaw.co.uk"},"directories":{},"maintainers":[{"name":"emericklaw","email":"matt@emericklaw.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/summernote-cleaner_1.0.5_1658757967608_0.05665746886022971"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-25T14:06:07.553Z","1.0.5":"2022-07-25T14:06:07.787Z","modified":"2022-07-25T14:06:07.983Z"},"maintainers":[{"name":"emericklaw","email":"matt@emericklaw.co.uk"}],"description":"A plugin for the Summernote WYSIWYG editor.","homepage":"https://github.com/DiemenDesign/summernote-cleaner#readme","keywords":["summernote"],"repository":{"type":"git","url":"git+https://github.com/DiemenDesign/summernote-cleaner.git"},"author":{"name":"DiemenDesign"},"bugs":{"url":"https://github.com/DiemenDesign/summernote-cleaner/issues"},"license":"MIT","readme":"# summernote-cleaner v1.0.4\nA plugin for the [Summernote](https://github.com/summernote/summernote/) WYSIWYG editor.\n\nsummernote-cleaner removes the unnecessary and possibly layout breaking Crud that gets added by MSWord, Open Office, and Libre Office Documents.\n\nThe plugin can function in a couple of different ways. It can have a Toolbar Button which allows the Cleaning of the Editor's Text, or Pasted Text can be Cleaned when Pasted into the Text Editor.\n\nThe plugin can also limit the number of characters, with options to display text and/or HTML count in the status bar area.\n\n# Installation\n\n#### 1. Include JS\n\nInclude the following code after Summernote:\n\n```html\n<script src=\"summernote-cleaner.js\"></script>\n```\n\n#### 2. Supported languages\n\nCurrently available in English!\n\n#### 3. Summernote options\n\n```javascript\n$('.summernote').summernote({\n    toolbar: [\n        ['cleaner',['cleaner']], // The Button\n        ['style',['style']],\n        ['font',['bold','italic','underline','clear']],\n        ['fontname',['fontname']],\n        ['color',['color']],\n        ['para',['ul','ol','paragraph']],\n        ['height',['height']],\n        ['table',['table']],\n        ['insert',['media','link','hr']],\n        ['view',['fullscreen','codeview']],\n        ['help',['help']]\n    ],\n    cleaner: {\n          action: 'both',\n          icon: '<i class=\"note-icon\">[Your Button]</i>',\n          keepHtml: true,\n          keepTagContents: ['span'], //Remove tags and keep the contents\n          badTags: ['applet', 'col', 'colgroup', 'embed', 'noframes', 'noscript', 'script', 'style', 'title'], //Remove full tags with contents,\n          badAttributes: ['bgcolor', 'border', 'height', 'cellpadding', 'cellspacing', 'lang', 'start', 'style', 'valign', 'width'],\n          limitChars: false,\n          limitDisplay: 'both',\n          limitStop: false,\n          notTimeOut: 850, //time before status message is hidden in miliseconds\n          imagePlaceholder: 'https://via.placeholder.com/200' // URL, or relative path to file.\n    }\n});\n```\n\n# Documentation\n\n**action:**\nOptions: ( both | button | paste )\n- button = Only cleans via toolbar button.\n- paste = Only cleans when pasting content.\n- both = Does both of the above options.\n\n**keepHtml:**\n- true = Keeps HTML Markup and put through parser to remove Word Crud.\n- false = Removes tag elements using the text version of the pasted content from the clipboard.\n\n**badTags:**\nRemove full tags with contents. Tags listed by name only ['style',  'script']`\n\n**badAttributes:**\nRemove attributes from tags. Attributes listed by name only `['style',  'start']`\n\n**limitChars:**\nLimits the number of characters in the summernote\n- false or 0 = allows for max input\n- numbers > 0 = limit on number of characters\n\n**limitDisplay:**\nShows in the status area the total html & text characters\nOptions: ( text | html | both )\n- text = text character count only\n- html = html character count only\n- both = both html & text\n\n**limitStop:**\nLimits the number of characters set by limitChars.\n- true = stops input\n- false = doesn't stop input\n\n**imagePlaceholder:**\nReplace pasted images with a nominated placeholder.\n\n# Thanks:\n- [RichardSquires](https://github.com/RichardSquires)\n  - Several issue regarding parsing text, and updating docs.\n- [wheelspin](https://github.com/wheelspin)\n  - For adding Microsoft Browsers Support, and modifying the alert.\n- [Diemen Design](https://github.com/DiemenDesign/)\n  - Check out our other Summernote Plugins via our main Github page.\n\n# CHANGELOG:\n#### v1.0.4\n- Resolved sucess status text always shown after action\n\n#### v1.0.3\n- Added feature for removing a tag whilst keeping its content\n\n#### v1.0.2\n- Resolved paste plain text with keepHtml enabled bug\n- Code cleanup\n\n#### V1.0.1\n- Remove keepOnlyTags, and keepClasses, they were origially intended to be used, but refinement and other options have taken their place.\n- Reformat source looking for typos.\n- Replace Images with a nominated placeholder.\n- Replace `alt` attributes with `data-title` and `alt` used by Summernote.\n\n# TODO:\n- Implement Image conversion to base64, and hopefully automatic upload to destination folder.\n","readmeFilename":"README.md"}