{"_id":"@culm/quill-image-resize","name":"@culm/quill-image-resize","dist-tags":{"latest":"3.0.3"},"versions":{"3.0.3":{"author":{"name":"@kensnyder"},"bugs":{"url":"https://github.com/kensnyder/quill-image-resize-module/issues"},"contributors":[{"name":"Wikia","url":"https://github.com/Wikia"}],"dependencies":{"lodash":"^4.17.4","quill":"^1.2.2","raw-loader":"^0.5.1"},"deprecated":false,"description":"A module for Quill rich text editor to allow images to be resized.","devDependencies":{"babel-cli":"^6.24.0","babel-eslint":"^7.2.1","babel-loader":"^6.4.1","babel-plugin-transform-class-properties":"^6.23.0","babel-preset-env":"^1.2.2","babel-preset-es2015":"^6.24.0","eslint":"^3.19.0","eslint-config-airbnb":"^14.1.0","eslint-plugin-import":"^2.2.0","eslint-plugin-jsx-a11y":"^4.0.0","eslint-plugin-react":"^6.10.3","webpack":"^2.3.3"},"homepage":"https://github.com/kensnyder/quill-image-resize-module#readme","keywords":["quill","quilljs","image","resize","sizer"],"license":"MIT","main":"image-resize.min.js","name":"@culm/quill-image-resize","repository":{"type":"git","url":"git+https://github.com/kensnyder/quill-image-resize-module.git"},"scripts":{"dev":"webpack --progress --colors --watch","fixlint":"eslint --fix --ext js,es6 src","lint":"eslint --ext js,es6 src","release":"webpack -p --progress --colors","test":"echo \"Error: no test specified\" && exit 1"},"version":"3.0.3","gitHead":"32762903da25e3257b612129aa0d509a389d463a","_id":"@culm/quill-image-resize@3.0.3","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-UYOUSO+k8cI9yHSKOeHdIsPuJ/tUntTBJrYRVeBMGWSZe7uoy2nAi2LaK87JDt1MVIhidLR/XQJeDNx4LBThLw==","shasum":"59d77828f5632df308e5f043494d626e4b7bbc1f","tarball":"https://registry.npmjs.org/@culm/quill-image-resize/-/quill-image-resize-3.0.3.tgz","fileCount":16,"unpackedSize":377000,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEkd6GG+XgYoyYU93ZJV29I6mnB7rFmcfJCmBT9Fv0ehAiEA+qmGCfdygyrjoli9XFVehi3zXorbTkmvzU8RLIsV+uE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJih19TACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrDIxAAlmqXNjYQJjihjGitIthYLWne5fBxuSfE+6BzZpF1SsLkCVTj\r\n98OUSlUVZvd9gyARX+Au0KAeSASOY/PLcclCMvzG0kKL3TBEOndfDAo+wxBp\r\n2PQ2Jv+etoU8/gLEf0o1vc0Kf4ki+MDbAfcAkdwRV765gKn+wXusLrM7KoVQ\r\nsXTfWnGaYUIo6DWnv7xfwti3bCOW19Nx9QWHbd1WjgNKKesXgkzevSakEXUG\r\nWIm01wc6mtsKHGSp5xCa06BLfKjTJ8vO/KCD+8mC3PnyR68vn9sRaV3aKza4\r\nBN/wD499DSSWItuF09YES5SFhVBfQaiKe8j6iHxdrio2bWB9Uijlq065MCFZ\r\n8zVebPtvZftAvyHozwiCUSCTGnqZ2N9bhCqnTc01qiA5MYjo0KPNRLvSSDjO\r\nf4c5j3uBRS6cCtOm/Rkj9yzAqnYIJR1DsgRO6HdK2qYzFIOr45/nASgnU0ck\r\n+WXox1Vc/vP9ckAzajUvvs3PKQKRaGA1TWdjMbXlyXa234+kojayf7aGAqZP\r\npYQZgbFILBxheOEiVxg0LKvAxrpHg1W3IZzfl9/WbLx0qWuI3Ue4Y0m2vAWV\r\nG8FQ9HvMmkF8BnPKANjY1xivWS3LZVkTBGYsdtHnPG3TrNfAWa5dRKinJAEE\r\nDjDvlqu/1ERhsVjhG1PGCbYh+yAvuZZbDsI=\r\n=uz9T\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"culm123","email":"416580612@qq.com"},"directories":{},"maintainers":[{"name":"culm123","email":"416580612@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/quill-image-resize_3.0.3_1653038931566_0.9807056684055875"},"_hasShrinkwrap":true}},"time":{"created":"2022-05-20T09:28:51.508Z","3.0.3":"2022-05-20T09:28:51.740Z","modified":"2022-05-20T09:28:51.933Z"},"maintainers":[{"name":"culm123","email":"416580612@qq.com"}],"description":"A module for Quill rich text editor to allow images to be resized.","homepage":"https://github.com/kensnyder/quill-image-resize-module#readme","keywords":["quill","quilljs","image","resize","sizer"],"repository":{"type":"git","url":"git+https://github.com/kensnyder/quill-image-resize-module.git"},"contributors":[{"name":"Wikia","url":"https://github.com/Wikia"}],"author":{"name":"@kensnyder"},"bugs":{"url":"https://github.com/kensnyder/quill-image-resize-module/issues"},"license":"MIT","readme":"# @aiot/quill-image-resize\n\nA module for Quill rich text editor to allow images to be resized.\n\nAlso see [quill-image-drop-module](https://github.com/kensnyder/quill-image-drop-module),\na module that enables copy-paste and drag/drop for Quill.\n\n## Demo\n\n[Plunker](https://plnkr.co/edit/gq708AOrSBOWSlHcFslG?p=preview)\n\n## Usage\n\n### Webpack/ES6\n\n```javascript\nimport Quill from 'quill';\nimport { ImageResize } from 'quill-image-resize-module';\n\nQuill.register('modules/imageResize', ImageResize);\n\nconst quill = new Quill(editor, {\n    // ...\n    modules: {\n        // ...\n        imageResize: {\n            // See optional \"config\" below\n        }\n    }\n});\n```\n\n### Script Tag\n\nCopy image-resize.min.js into your web root or include from node_modules\n\n```html\n<script src=\"/node_modules/quill-image-resize-module/image-resize.min.js\"></script>\n```\n\n```javascript\nvar quill = new Quill(editor, {\n    // ...\n    modules: {\n        // ...\n        ImageResize: {\n            // See optional \"config\" below\n        }\n    }\n});\n```\n\n### Config\n\nFor the default experience, pass an empty object, like so:\n```javascript\nvar quill = new Quill(editor, {\n    // ...\n    modules: {\n        // ...\n        ImageResize: {}\n    }\n});\n```\n\nFunctionality is broken down into modules, which can be mixed and matched as you like. For example,\nthe default is to include all modules:\n\n```javascript\nconst quill = new Quill(editor, {\n    // ...\n    modules: {\n        // ...\n        ImageResize: {\n            modules: [ 'Resize', 'DisplaySize', 'Toolbar' ]\n        }\n    }\n});\n```\n\nEach module is described below.\n\n#### `Resize` - Resize the image\n\nAdds handles to the image's corners which can be dragged with the mouse to resize the image.\n\nThe look and feel can be controlled with options:\n\n```javascript\nvar quill = new Quill(editor, {\n    // ...\n    modules: {\n        // ...\n        ImageResize: {\n            // ...\n            handleStyles: {\n                backgroundColor: 'black',\n                border: 'none',\n                color: white\n                // other camelCase styles for size display\n            }\n        }\n    }\n});\n```\n\n#### `DisplaySize` - Display pixel size\n\nShows the size of the image in pixels near the bottom right of the image.\n\nThe look and feel can be controlled with options:\n\n```javascript\nvar quill = new Quill(editor, {\n    // ...\n    modules: {\n        // ...\n        ImageResize: {\n            // ...\n            displayStyles: {\n                backgroundColor: 'black',\n                border: 'none',\n                color: white\n                // other camelCase styles for size display\n            }\n        }\n    }\n});\n```\n\n#### `Toolbar` - Image alignment tools\n\nDisplays a toolbar below the image, where the user can select an alignment for the image.\n\nThe look and feel can be controlled with options:\n\n```javascript\nvar quill = new Quill(editor, {\n    // ...\n    modules: {\n        // ...\n        ImageResize: {\n            // ...\n            toolbarStyles: {\n                backgroundColor: 'black',\n                border: 'none',\n                color: white\n                // other camelCase styles for size display\n            },\n            toolbarButtonStyles: {\n                // ...\n            },\n            toolbarButtonSvgStyles: {\n                // ...\n            },\n        }\n    }\n});\n```\n\n#### `BaseModule` - Include your own custom module\n\nYou can write your own module by extending the `BaseModule` class, and then including it in\nthe module setup.\n\nFor example,\n\n```javascript\nimport { Resize, BaseModule } from 'quill-image-resize-module';\n\nclass MyModule extends BaseModule {\n    // See src/modules/BaseModule.js for documentation on the various lifecycle callbacks\n}\n\nvar quill = new Quill(editor, {\n    // ...\n    modules: {\n        // ...\n        ImageResize: {\n            modules: [ MyModule, Resize ],\n            // ...\n        }\n    }\n});\n```\n","readmeFilename":"README.md"}