{"_id":"@aviraliitk/smart-editor","_rev":"2-76c2c27c76cd91a9167be146cefb1edf","name":"@aviraliitk/smart-editor","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@aviraliitk/smart-editor","version":"1.0.0","author":{"name":"Aviral Verma","email":"aviralverma.verma@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/aviral-verma/smart-editor.git"},"license":"MIT","private":false,"peerDependencies":{"@angular/common":">6.0.0","@angular/core":">6.0.0","@angular/forms":">6.0.0","@angular/platform-browser":">6.0.0","rxjs":"^6.x.x"},"keywords":["smart","editor","native","wysiwyg","smart-editor"],"dependencies":{"@angular/common":"^7.2.13","@angular/core":"^7.2.13","@ngrx/store":"^6.1.2"},"gitHead":"8693b9dfc47cb45bd3b51c617d799d4a945d6f2a","description":"A simple native wysiwyg editor for Angular 6+, 7+","bugs":{"url":"https://github.com/aviral-verma/smart-editor/issues"},"homepage":"https://github.com/aviral-verma/smart-editor#readme","_id":"@aviraliitk/smart-editor@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"aviraliitk","email":"aviralverma.verma@gmail.com"},"dist":{"integrity":"sha512-hgYJ11pZ9czl9HilPNWw0kbu+n9xe/qLqcLEn/iMAjOUWHf2uaBuH/Ij/6NydKndDUDoMZf8ch8M6U5q8qxh2A==","shasum":"7a5ebe857c292a069b827d0626bcd2c7ed3cfc11","tarball":"https://registry.npmjs.org/@aviraliitk/smart-editor/-/smart-editor-1.0.0.tgz","fileCount":23,"unpackedSize":45841,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJctXSSCRA9TVsSAnZWagAAfdAP/3trK2FosKFWLRNQDCk6\nDKPTwxRB8Yh6Ztku2xK1bcgyMAwzA6+bkzD/VyfMIRh4xIPDdMF9rNYA5WEQ\nUynjwzljXcp1hLmUufAXF+bOFdoBfZy52AaW56pr6jHyF0GC5EPnNOjDXSpO\nP7FONGhz3Blrc5tOAJIZVTVuRNpMKXurvypXhHSlOT7ar2V4QoN/cYqAxkRZ\nZgvaJKlupLKVK2/Uw2umPQZNnNtww3LTxhPPstk1vn/85DjSu9g3wQaQFQfX\nHVvXKKimC3xGHif7wgroGqaKOD4EyD9qsFAMXipinMLCWuBhAHFpnFqCP362\nLaan+utAhtVEaW+zZ2H6O3QxSrPloqiLbYdOfOtZTsBZkmLYjKALzX4EuPnO\noUbAmerpiphKapissejlcbpJ/e1sgGNBwthPc0KwcJrGt4UiyQ3mk+CkIrZx\nmoDG7KlwrvY+ucz1sOipymgIvxqUWlCykfyxfWX5Ig2Ajj++AMytio8Viwob\nINWoYdULkfDawqsfZB/VlVzhRjaWKRqEL4pGRC0Tl029apPHaPEmb9Yp51kk\nYxcRhi8JTEj0IbXdm0w8S/7zglDwCugqKDOwO8Pwd43o5vyBFYMX86omngCc\nHwYRLqq+3R9xxz1lmeKzxNZiI3rHQr144oONDNCjVaPCJYKcpe6tZr2la+Eu\nuP8+\r\n=jJkJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBVdtiqi4NAUWLJIEWZv9rXAELQrIQWVZVUh/wIKH8EmAiAuysF0xXg50oCxFFW35QdhSMWDHgprd8vtOTnUUFcu/A=="}]},"maintainers":[{"name":"aviraliitk","email":"aviralverma.verma@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/smart-editor_1.0.0_1555395729819_0.9303594970072708"},"_hasShrinkwrap":false},"2.0.0":{"name":"@aviraliitk/smart-editor","version":"2.0.0","author":{"name":"Aviral Verma","email":"aviralverma.verma@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/aviral-verma/smart-editor.git"},"license":"MIT","private":false,"peerDependencies":{"@angular/common":">6.0.0","@angular/core":">6.0.0","@angular/forms":">6.0.0","@angular/platform-browser":">6.0.0","rxjs":"^6.x.x"},"keywords":["smart","editor","native","wysiwyg","smart-editor"],"dependencies":{"@angular/common":"^7.2.13","@angular/core":"^7.2.13","@ngrx/store":"^6.1.2"},"gitHead":"4ca723f154fe39cc10c450d6d6b5fa2c30d1a872","description":"A simple native wysiwyg editor for Angular 6+, 7+","bugs":{"url":"https://github.com/aviral-verma/smart-editor/issues"},"homepage":"https://github.com/aviral-verma/smart-editor#readme","_id":"@aviraliitk/smart-editor@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"aviraliitk","email":"aviralverma.verma@gmail.com"},"dist":{"integrity":"sha512-O3nOX2iyGeeBaYSK5bxEXVDFbMjQu9aDeI7nFPCrNHO16QlOMGAtpyPClclWsvIcM1OLVIiPJLQvvpG5Eq7s/Q==","shasum":"d429ecc284a077cc22234c815ec365837f387c70","tarball":"https://registry.npmjs.org/@aviraliitk/smart-editor/-/smart-editor-2.0.0.tgz","fileCount":23,"unpackedSize":45313,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJctXtFCRA9TVsSAnZWagAAEdIP/0b+UhzzZg+KO/WZwi14\nbuhbOvUK3MBZpC/DrfGijsd61kE+P5m+tIKACQfiloGV79kbnmgtg3Yw7Wpv\n2Am5E7VPhew2Zp4qw7cq9eFCTrD1dDk9kFaUEMr6KWGRz+gVjjXNQTl3R0kU\nXcpU1Nvaj3Jr9rA0ebNHEAyzZeh46Dtc+GP9nY5W/lF6NL8Hw5NlVdIJ+Ya5\n/xLY8kAGegTAy6E5ogt/EtFR0w3B5oN4w3VpVRJm8MC8SoNyuTlp6D/KT3Xi\nfyTqZVNixZQpiqFNOoV93RFnm/fehpWq82CEYGtqaX/ax8pMrgK+QSeztcJT\nakaIYDsOLm/JjZRKSepzikQwG5GA+qwDoSJoRvdAvH9eTdXf6KwOcFvX6b3a\n7MMpjyVuVd1mtnx9dIlrBqZH0BLv03ALe1vISprkB23kIuCAwrgQ6KQ5/JJ+\nBWmh66i8YGigAy9BwFoC5fqxyautfckseyPu4KTKy+1GUmj8A1ip3z5BhYr2\nsbXdRMvr4Qp2nsdD3zTebHxliEm2l5RfEedHlL8v2xkCP7cLwaE2hrn9iMWA\n1fvY/0ikWLINQNeHcsR1EoswyTgopjtpZ1qWjeGJM+PLCWxmlfTHRVqbPbCG\nN69HCy4KIRQlChTPK97Tw1HE8hyIgSRfNsajVAJj/RGGUW6yi7mXaEZDptrH\n6zco\r\n=PS7D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzsIyxtcK5UD1lFDQpy44Tw+Td75BoaF/QEPRXOJ9PdgIhAJ0gJVCIiYEWrdqUcziSijLme+sCOHdACvd0M+vRrLfI"}]},"maintainers":[{"name":"aviraliitk","email":"aviralverma.verma@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/smart-editor_2.0.0_1555397444795_0.4691262337420281"},"_hasShrinkwrap":false}},"time":{"created":"2019-04-16T06:22:09.630Z","1.0.0":"2019-04-16T06:22:09.999Z","modified":"2022-04-04T16:47:40.561Z","2.0.0":"2019-04-16T06:50:44.985Z"},"maintainers":[{"name":"aviraliitk","email":"aviralverma.verma@gmail.com"}],"description":"A simple native wysiwyg editor for Angular 6+, 7+","homepage":"https://github.com/aviral-verma/smart-editor#readme","keywords":["smart","editor","native","wysiwyg","smart-editor"],"repository":{"type":"git","url":"git+https://github.com/aviral-verma/smart-editor.git"},"author":{"name":"Aviral Verma","email":"aviralverma.verma@gmail.com"},"bugs":{"url":"https://github.com/aviral-verma/smart-editor/issues"},"license":"MIT","readme":"# SmartEditor\nA simple native wysiwyg editor for Angular 6+, 7+\n\n\n## Getting Started\n\n### Installation\n\nInstall via [npm][npm] package manager\n\n```bash\nnpm install @aviraliitk/smart-editor --save\n```\n\n### Usage\n\nImport `smart-editor` module\n\n```typescript\nimport { HttpClientModule} from '@angular/common/http';\nimport { SmartEditorModule } from '@aviraliitk/smart-editor';\n\n@NgModule({\n  imports: [ HttpClientModule, SmartEditorModule ]\n})\n```\n\nThen in HTML\n\n```html\n<smart-editor [placeholder]=\"'Enter text here...'\" [(ngModel)]=\"htmlContent\"></smart-editor>\n```\n\nor for usage with reactive forms\n\n```html\n<smart-editor formControlName=\"htmlContent\" [config]=\"editorConfig\"></smart-editor>\n```\n\nif you using more than one editor on same page set `id` property\n\n```html\n<smart-editor id=\"editor1\" formControlName=\"htmlContent1\" [config]=\"editorConfig\"></smart-editor>\n<smart-editor id=\"editor2\" formControlName=\"htmlContent2\" [config]=\"editorConfig\"></smart-editor>\n\n```\n\nwhere\n\n```typescript\nimport { SmartEditorConfig } from '@aviraliitk/smart-editor';\n\n...\n\neditorConfig: SmartEditorConfig = {\n    editable: true,\n    spellcheck: true,\n    height: '25rem',\n    minHeight: '5rem',\n    placeholder: 'Enter text here...',\n    translate: 'no',\n    uploadUrl: 'v1/images', // if needed\n    customClasses: [ // optional\n      {\n        name: \"quote\",\n        class: \"quote\",\n      },\n      {\n        name: 'redText',\n        class: 'redText'\n      },\n      {\n        name: \"titleText\",\n        class: \"titleText\",\n        tag: \"h1\",\n      },\n    ]\n  };\n```\n\nFor `ngModel` to work, you must import `FormsModule` from `@angular/forms`, or for `formControlName`, you must import `ReactiveFormsModule` from `@angular/forms`\n\n","readmeFilename":"README.md"}