{"_id":"ac-editor","_rev":"25-951b68578661deae1143d6fa4e51592d","name":"ac-editor","dist-tags":{"alpha":"1.0.2-alpha.0","latest":"1.0.2"},"versions":{"0.0.1":{"name":"ac-editor","version":"0.0.1","keywords":["yyuap","editor","tinper-bee"],"author":{"name":"Kvkens","email":"yueming@yonyou.com"},"license":"MIT","_id":"ac-editor@0.0.1","maintainers":[{"name":"kvkens","email":"kvkens@qq.com"}],"homepage":"https://github.com/tinper-acs/ac-editor#readme","bugs":{"url":"https://github.com/tinper-acs/ac-editor/issues"},"dist":{"shasum":"7be97a1d9044af0c1487abced7774b32a7580d70","tarball":"https://registry.npmjs.org/ac-editor/-/ac-editor-0.0.1.tgz","fileCount":5,"integrity":"sha512-Mh5mpe8EcAQTIQBOadtSO5K9HnTc7wRvnGyGoEMnAob89xvif6b1FYENTpinvPXUi3ouQmu6uClYk6qRjEXsYQ==","signatures":[{"sig":"MEUCIFZDIGTMaQdgVxsBPbPEemEcpyrVak9Hg2UyOIZwk+I+AiEA/Fbx69P1ZHbyuvlWSK+ef7yOu9zIXn0hBxAUfclwv7c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":454548,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbkn+5CRA9TVsSAnZWagAAG8MP/i/fTt05zA4ffJNMxqsc\ns7jSRWMG8ldRXDj9gLWBySO3fygfw5eSzguoAaoet4+aJ9TimwbmgMaZqqwU\ngIJqr/cPXBJjyp1LmCx/fsGVWaTPWz2QAQh+1ozIWfcIHjmTlZ7pAANxyUkE\nFjb63EMaYfv2nwkHwqJIHCj2hhfnCyKE/w/mGijvp3GOn7gF6TzkRtptJ8x0\nRkl8PZWZdaUj8bVw+5IvqBRjP7t6/6SqUSvPU+8z5o4NCCuLSRmnflVBODZp\naeM44Mm2XPG7ovEYSEV4cxDwHCFuY5YJvCrVdpcUfDYIGsEKwx45NbBE3w9G\nFt7hVp6Ft3VbyncQMkoYcCs594Fr6hGlfm4NJyU3tOW1I6rV6oN6wW6B/QCl\n2csh3u+5Ikbdxi60MmW0guFbB4040HYcjlYJwtpJCJEFwOqUyspLDqilqhn2\niBy3JXYGRlcRJJSrTY+6QrTUpD7+rVMGTVHHsH0gj9C5SL/dw3wnrcGZMDoS\nS6QLZXCEDgni9Wo6LnHopsh9X/pV3jd7xs1u0C6h3/k9Tvv6bFszw+KPcn+S\np3VrCAL3WauOWkVJamErufCrcKLcl73dKaI8noFE1l01tbv8qvMe2mCnd6PM\nk+U0MumKisYKohlM4ZVAWS4oIPViSf+kl9RBoDQMX/3mVns01/dBwT50PDrs\nvePU\r\n=Uw2G\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","gitHead":"edf3e2cdefd034a4db90bb0c180f12e13c66957b","scripts":{"dev":"webpack-dev-server --config config/webpack.config.dev.js","lint":"eslint --ext .js --ext .jsx src/","test":"echo \"Error: no test specified\" && exit 1","build":"npm run clear && webpack --config config/webpack.config.prod.js","clear":"rimraf dist","deploy":"npm run clear:gh-pages && webpack --config config/webpack.config.ghpages.js","lint-fix":"eslint --fix --ext .js --ext .jsx src/","precommit":"npm run lint","clear:gh-pages":"rimraf ghpages"},"_npmUser":{"name":"kvkens","email":"kvkens@qq.com"},"repository":{"url":"git+https://github.com/tinper-acs/ac-editor.git","type":"git"},"_npmVersion":"6.4.1","description":"Rich Text Editor","directories":{},"_nodeVersion":"8.11.4","dependencies":{"braft-editor":"^2.0.5"},"_hasShrinkwrap":false,"devDependencies":{"less":"^3.8.1","react":"^16.4.2","eslint":"^5.4.0","rimraf":"^2.6.2","webpack":"^4.17.0","babel-cli":"^6.26.0","bee-panel":"^1.0.0","node-sass":"^4.9.3","react-dom":"^16.4.2","babel-core":"^6.26.3","bee-button":"^1.0.6","bee-layout":"^1.2.7","css-loader":"^1.0.0","tinper-bee":"^1.2.7","url-loader":"^1.1.1","file-loader":"^2.0.0","html-loader":"^0.5.5","less-loader":"^4.1.0","sass-loader":"^7.1.0","webpack-cli":"^3.1.0","babel-eslint":"^8.2.6","babel-loader":"^7.1.5","style-loader":"^0.22.1","eslint-loader":"^2.1.0","webpack-merge":"^4.1.4","postcss-loader":"^3.0.0","markdown-styles":"^3.1.10","tinper-bee-core":"^0.4.1","babel-preset-env":"^1.7.0","react-hot-loader":"^4.3.4","babel-preset-react":"^6.24.1","webpack-dev-server":"^3.1.5","eslint-plugin-react":"^7.11.1","html-webpack-plugin":"^3.2.0","babel-preset-stage-1":"^6.24.1","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-promise":"^4.0.0","eslint-config-standard":"^11.0.0","eslint-plugin-jsx-a11y":"^6.1.1","eslint-plugin-standard":"^3.1.0","webpack-node-externals":"^1.7.2","mini-css-extract-plugin":"^0.4.2","uglifyjs-webpack-plugin":"^1.3.0","babel-preset-es2015-loose":"^8.0.0","open-browser-webpack-plugin":"0.0.5","babel-plugin-transform-runtime":"^6.23.0","optimize-css-assets-webpack-plugin":"^5.0.0","babel-plugin-transform-decorators-legacy":"^1.3.5"},"peerDependencies":{"react":"^15.3.0 || ^16.0.0","react-dom":"^15.3.0 || ^16.0.0","prop-types":"^15.6.0"},"_npmOperationalInternal":{"tmp":"tmp/ac-editor_0.0.1_1536327608938_0.6925045669016234","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"ac-editor","version":"1.0.0","keywords":["yyuap","editor","tinper-bee"],"author":{"name":"Kvkens","email":"yueming@yonyou.com"},"license":"MIT","_id":"ac-editor@1.0.0","maintainers":[{"name":"kvkens","email":"kvkens@qq.com"}],"homepage":"https://github.com/tinper-acs/ac-editor#readme","bugs":{"url":"https://github.com/tinper-acs/ac-editor/issues"},"dist":{"shasum":"34a594a4ef13158d92d699d1beb6d494264bed1c","tarball":"https://registry.npmjs.org/ac-editor/-/ac-editor-1.0.0.tgz","fileCount":5,"integrity":"sha512-avRkLEhIDEqzlwjRP7to0ZyczPErAM6nIXAjR/MMSfufTBNTMcPpqmFiFkwKcYLsVdqe9cnrUGIpTX6+UK07XA==","signatures":[{"sig":"MEUCIQCxRj0SP+DSagQJivpaTfhrpJlcF70Q35FRO9iin/a0ngIgW5DHMJ1SKx7cRIfuru1ch6Mtd5eo+fM+5/OP5K/VyJ8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":455258,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbk8eCCRA9TVsSAnZWagAAiJYQAJsO/3H6MYsQJmjzmFcw\nsHY3fSSu0R4PmfhRPnkXONVDEYeHbBsBLfgGx6Q6SJMUHKSOhOWdIdy0YiJN\nU4ULu+6AvHrPxWb2nd7qIwjixcSQveiE9qfbw9uPz7dpK3tO2l84PQVy/EE9\n50OWCde7CHIV35eirSd48eCR6ltbmZ5bBFVm+fRVGss8PMp4K9LBAHwJyizD\no7NLOMWNdDBeRBCsmZIgSFPgpHbzWmz/OHTr+CqzGoQuQ9nZ04zXEuN0JlQ2\nDS8UwXRkrevOBLFfg9TU4cphWk1oO9N+FfF/BzfZnuj1NhKXvUAHMoITgTmk\nHgqyK7jK10vIK7Eyj9oqopo7UbV0v+jtT46OGSLt2jJfFEaSlgL8ZbWiIaFZ\nzbL0BYo7Rqv7OhAizKiDga0MrOGW6jZ4M1D6oqUDlotlYTb4GN/zEIrpOYj/\n9tDsrUqPnbUWpROPJd6GXPjzPTqC6mOL+Ba/EAwvESkzBaP1uZqvnemu+SGn\nFA+66/uzDE6wbRR5KTlHXN+2MpJYzzszt+kk+RLqcoU6hp0VFY8n2uOhN3W4\no3QjqoQ8bU2QrkFgpHq42wOAUQr3c56aup1x2CY85n2CLAZ0iMGMUDzTdVpa\nF8Kc1DrAqAC7lY3Su32isDKTJzr9SUHML1obU8xs92zILV0cbu5TsWE0+dLZ\npcwi\r\n=A3N/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","gitHead":"7fec70bac6fbb7823af73d2d14f412644665999f","scripts":{"dev":"webpack-dev-server --config config/webpack.config.dev.js","lint":"eslint --ext .js --ext .jsx src/","test":"echo \"Error: no test specified\" && exit 1","build":"npm run clear && webpack --config config/webpack.config.prod.js","clear":"rimraf dist","deploy":"npm run clear:gh-pages && webpack --config config/webpack.config.ghpages.js","lint-fix":"eslint --fix --ext .js --ext .jsx src/","precommit":"npm run lint","clear:gh-pages":"rimraf ghpages"},"_npmUser":{"name":"kvkens","email":"kvkens@qq.com"},"repository":{"url":"git+https://github.com/tinper-acs/ac-editor.git","type":"git"},"_npmVersion":"6.4.1","description":"Rich Text Editor","directories":{},"_nodeVersion":"8.11.4","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"less":"^3.8.1","react":"^16.4.2","eslint":"^5.4.0","rimraf":"^2.6.2","webpack":"^4.17.0","babel-cli":"^6.26.0","bee-panel":"^1.0.0","node-sass":"^4.9.3","react-dom":"^16.4.2","babel-core":"^6.26.3","bee-button":"^1.0.6","bee-layout":"^1.2.7","css-loader":"^1.0.0","tinper-bee":"^1.2.7","url-loader":"^1.1.1","file-loader":"^2.0.0","html-loader":"^0.5.5","less-loader":"^4.1.0","sass-loader":"^7.1.0","webpack-cli":"^3.1.0","babel-eslint":"^8.2.6","babel-loader":"^7.1.5","braft-editor":"^2.0.5","style-loader":"^0.22.1","eslint-loader":"^2.1.0","webpack-merge":"^4.1.4","postcss-loader":"^3.0.0","markdown-styles":"^3.1.10","tinper-bee-core":"^0.4.1","babel-preset-env":"^1.7.0","react-hot-loader":"^4.3.4","babel-preset-react":"^6.24.1","webpack-dev-server":"^3.1.5","eslint-plugin-react":"^7.11.1","html-webpack-plugin":"^3.2.0","babel-preset-stage-1":"^6.24.1","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-promise":"^4.0.0","eslint-config-standard":"^11.0.0","eslint-plugin-jsx-a11y":"^6.1.1","eslint-plugin-standard":"^3.1.0","webpack-node-externals":"^1.7.2","mini-css-extract-plugin":"^0.4.2","uglifyjs-webpack-plugin":"^1.3.0","babel-preset-es2015-loose":"^8.0.0","open-browser-webpack-plugin":"0.0.5","babel-plugin-transform-runtime":"^6.23.0","optimize-css-assets-webpack-plugin":"^5.0.0","babel-plugin-transform-decorators-legacy":"^1.3.5"},"peerDependencies":{"react":"^15.3.0 || ^16.0.0","react-dom":"^15.3.0 || ^16.0.0","prop-types":"^15.6.0"},"_npmOperationalInternal":{"tmp":"tmp/ac-editor_1.0.0_1536411522065_0.8360759187686337","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"ac-editor","version":"1.0.1","keywords":["yyuap","editor","tinper-bee"],"author":{"name":"Kvkens","email":"yueming@yonyou.com"},"license":"MIT","_id":"ac-editor@1.0.1","maintainers":[{"name":"kvkens","email":"kvkens@qq.com"}],"homepage":"https://github.com/tinper-acs/ac-editor#readme","bugs":{"url":"https://github.com/tinper-acs/ac-editor/issues"},"dist":{"shasum":"c246ed5a525c0105a49553dfe4df680afb1c976d","tarball":"https://registry.npmjs.org/ac-editor/-/ac-editor-1.0.1.tgz","fileCount":5,"integrity":"sha512-bSgeGgyo3GtO98sz91xbYRCadMBkLZOiy5mHy4T3MAiMxUavehx+b6LEQuOBk4+gviANlb4VZXbnt65QURySbQ==","signatures":[{"sig":"MEUCIHCN9MwaTIUnegB8kyQ6lpE6azCOYlu24vDioInQbGv8AiEA+dqFLypQVO0hEu/lXSIIN+SIaKVo5CKJteQGqxyadcQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":468249,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbvc/iCRA9TVsSAnZWagAAo3wP/3DD6af6612yWb9DcnfT\nJOaPyaGmjGdzSrYn3xWFUXLwnuY38jRD9ecSyjN9ja3AlXiawdQxXq1P2hF0\n0gqwdZDlMFE6pKpZmQwpgNfdVh8BoR0NFOwruMIGw1+PSEANpBgiBX7QcNz8\ngyV4xo9Lltsa3bG7UkmuZ18x+EbKYtIgtfbvJqjT3Lay0npbGI8foWgrJYKt\nHBuSDlN2ZAmn/8B6x122u2ITzzU5nqZShkEqP4QOCxtzxTmltKqpcdVcmYwC\nY7xUXu3uD6/QtXn51/5AUmGZtNAfXQnjNfK7GJqRVEjq9DvEeIpxyWEKO66J\ngPdDen808DeekofPV2wXLRwarMuFFKax0itJgs3HHXUuUsn6fovyIWcrjqR3\nMGa6ETeqzHvOEPolTsBp2AE7vkCVkkP5fHEMV2o86Ky5W1yh1zt9dB2x3n/t\nWAgeCf/F/5jOD8qs7wDZSXmx3ERM1xOt2WfHppEkI3h5XqKlzwRKXePEWSmU\ndBBVS2Y5fhuFJcGF0hxZ2RuAUgvs2v8yvlm3dag7vnkFxhudcYK3IORQ4Dgf\npHGn5i7ye4ezIVEKFhL2nflSy/OHwPwLTsixwmDqoXCA2ZpOijyUXVV/Yc8W\n3PUhpz3Zj14h3mm5T+twMZ4ppPjn73w/AESYuz2QD9//H0qIZqVAWa0HskNo\nsOLx\r\n=c8va\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","gitHead":"2759976f823d6a45cda3f5f46959fb481038f725","scripts":{"dev":"webpack-dev-server --config config/webpack.config.dev.js","lint":"eslint --ext .js --ext .jsx src/","test":"echo \"Error: no test specified\" && exit 1","build":"npm run clear && webpack --config config/webpack.config.prod.js","clear":"rimraf dist","deploy":"npm run clear:gh-pages && webpack --config config/webpack.config.ghpages.js","lint-fix":"eslint --fix --ext .js --ext .jsx src/","precommit":"npm run lint","clear:gh-pages":"rimraf ghpages"},"_npmUser":{"name":"kvkens","email":"kvkens@qq.com"},"repository":{"url":"git+https://github.com/tinper-acs/ac-editor.git","type":"git"},"_npmVersion":"6.4.1","description":"Rich Text Editor","directories":{},"_nodeVersion":"8.11.4","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"less":"^3.8.1","react":"^16.4.2","eslint":"^5.4.0","rimraf":"^2.6.2","webpack":"^4.17.0","babel-cli":"^6.26.0","bee-panel":"^1.0.0","node-sass":"^4.9.3","react-dom":"^16.4.2","babel-core":"^6.26.3","bee-button":"^1.0.6","bee-layout":"^1.2.7","css-loader":"^1.0.0","tinper-bee":"^1.2.7","url-loader":"^1.1.1","file-loader":"^2.0.0","html-loader":"^0.5.5","less-loader":"^4.1.0","sass-loader":"^7.1.0","webpack-cli":"^3.1.0","babel-eslint":"^8.2.6","babel-loader":"^7.1.5","braft-editor":"^2.1.3","style-loader":"^0.22.1","eslint-loader":"^2.1.0","webpack-merge":"^4.1.4","postcss-loader":"^3.0.0","markdown-styles":"^3.1.10","tinper-bee-core":"^0.4.1","babel-preset-env":"^1.7.0","react-hot-loader":"^4.3.4","babel-preset-react":"^6.24.1","webpack-dev-server":"^3.1.5","eslint-plugin-react":"^7.11.1","html-webpack-plugin":"^3.2.0","babel-preset-stage-1":"^6.24.1","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-promise":"^4.0.0","eslint-config-standard":"^11.0.0","eslint-plugin-jsx-a11y":"^6.1.1","eslint-plugin-standard":"^3.1.0","webpack-node-externals":"^1.7.2","mini-css-extract-plugin":"^0.4.2","uglifyjs-webpack-plugin":"^1.3.0","babel-preset-es2015-loose":"^8.0.0","open-browser-webpack-plugin":"0.0.5","babel-plugin-transform-runtime":"^6.23.0","optimize-css-assets-webpack-plugin":"^5.0.0","babel-plugin-transform-decorators-legacy":"^1.3.5"},"peerDependencies":{"react":"^15.3.0 || ^16.0.0","react-dom":"^15.3.0 || ^16.0.0","prop-types":"^15.6.0"},"_npmOperationalInternal":{"tmp":"tmp/ac-editor_1.0.1_1539166177868_0.0818228101558458","host":"s3://npm-registry-packages"}},"1.0.2-alpha.0":{"name":"ac-editor","version":"1.0.2-alpha.0","keywords":["yyuap","editor","tinper-bee"],"author":{"name":"Kvkens","email":"yueming@yonyou.com"},"license":"MIT","_id":"ac-editor@1.0.2-alpha.0","maintainers":[{"name":"bjyxszd","email":"SLA0630@163.com"},{"name":"guoyongfeng","email":"13552329235@163.com"},{"name":"huayingjie","email":"huayjh@yonyou.com"},{"name":"jonyw","email":"jonyshi@126.com"},{"name":"kvkens","email":"kvkens@qq.com"},{"name":"liushaozhen","email":"804199994@qq.com"},{"name":"npm_yx","email":"1600714656@qq.com"},{"name":"whizbz","email":"731215820@qq.com"},{"name":"yangchch","email":"yangchch6@yonyou.com"},{"name":"yonyoufed","email":"guoyff@yonyou.com"},{"name":"zhaoyuchief","email":"zhaoyuchief@163.com"}],"homepage":"https://github.com/tinper-acs/ac-editor#readme","bugs":{"url":"https://github.com/tinper-acs/ac-editor/issues"},"dist":{"shasum":"5f7e91986a767941fffddb0f6366f132c66b2d90","tarball":"https://registry.npmjs.org/ac-editor/-/ac-editor-1.0.2-alpha.0.tgz","fileCount":5,"integrity":"sha512-cxVI+Mnh95ZX3WKacUGHo1nqvA5gQMvE9RsFKSs4fxKu5zKkfwieDAaFtFFfArLcm9zemE4VaBaw4pu/dLMXjw==","signatures":[{"sig":"MEYCIQDY4lYKLtGkmielOiZ9XoRHqZGrGvtkNPmVrqv96vwAwQIhAO12Z+Zu4a/yOjai1Yx9559uciCd5lYCiNkGF6ASZJ4b","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":492556,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5MGuCRA9TVsSAnZWagAA0egQAIOfdR1Wlu5EMVaBFuYA\nZbIQb/UbEXLQMROoCAstao6HzcPoxDcZwzJRq85Ejk7fvX5r6Nra9VM2omIr\nRkz3q6c7IKLbOtdYneldY1TgsByn6762kJFQMrgC4ER83II+icSzGG+x2Jtx\nFkeXMssulsSKRVAArirBH8acdcOPkmkv6HeNZRa0jacqX0TgQ5ybPg4XFleD\nHpIWwydlFhO0FA2JZauREL2QAFxPie/IZwDj8SBIqqa+E6DBBLrLvRK9V9r5\nyHrs2AV7brvUcL6uimAtb0aOUbpifSRaUWxi1ObbR+gODs66QKtL5zAD4hfz\ng1d+krntNn4IcLaykhkmCl3YXKunx4lydg9gi8e3jYd5cIsxwfQbgJZ6cdIw\nDibCEUfVzmLpsKMBjutjpK51r78k/Dz5QsWLaqOjaAz4CKR6HtFrRsb2WuG0\n+3bfVuBQwOu0aYTNbRjG+tdTw03BvEt/kNQUfYv4+qFZ4CdNiN+YPeGKPVIz\nnRTfrINVO6l1G/G7QMj6O/RCJuWv5b2uqCHOT9Q2PL3F4HTQaqCkZ/FsQNNj\nmyD0NUqVfCGvCEL80kjaPHaiZGYULRqlkuCFCG9RFWtkQfiRs6axbUFBpMbA\ntTUYHsao2T6cvq27CDTS9quyCZGHM9A41j3gAssB0aTLGkLvja+UGullfOkd\nYqk5\r\n=9suB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","readme":"# 富文本编辑器 AcEditor\n\n一个基于draft-js的Web富文本编辑器，适用于React框架，兼容主流现代浏览器。\n\n## 何时使用\n\n富文本编辑器\n\n## 如何使用\n\n```\n使用yarn安装\nyarn add ac-editor\n\n使用npm安装\nnpm install ac-editor --save\n\nimport React from 'react';\n// 引入编辑器以及EditorState子模块\nimport AcEditor, { EditorState } from 'ac-editor';\n// 引入编辑器样式\nimport 'ac-editor/dist/index.css';\n\nexport default class EditorDemo extends React.Component {\n\n  state = {\n      editorState: null\n  }\n\n  async componentDidMount () {\n    // 假设此处从服务端获取html格式的编辑器内容\n    const htmlContent = await fetchEditorContent()\n    // 使用EditorState.createFrom将html字符串转换为编辑器需要的editorState数据\n    this.setState({\n      editorState: EditorState.createFrom(htmlContent)\n    })\n  }\n\n  submitContent = async () => {\n    // 在编辑器获得焦点时按下ctrl+s会执行此方法\n    // 编辑器内容提交到服务端之前，可直接调用editorState.toHTML()来获取HTML格式的内容\n    const htmlContent = this.state.editorState.toHTML();\n    const result = await saveEditorContent(htmlContent);\n  }\n\n  handleEditorChange = (editorState) => {\n    this.setState({ editorState });\n  }\n\n  render () {\n    const { editorState } = this.state;\n    return (\n      <div className=\"my-component\">\n        <AcEditor\n          value={editorState}\n          onChange={this.handleEditorChange}\n          onSave={this.submitContent}\n        />\n      </div>\n    )\n\n  }\n\n}\n\n```\n\n## 代码演示\n\n\n## API \n\n[文档参考](https://www.yuque.com/margox/be/gz44tn)\n\n[文档参考](https://www.yuque.com/margox/be/mrgy92)\n\n## 注意事项\n\n暂无\n\n## 更新日志\n\n\n\n","gitHead":"4e286221c728a800ff921dfdbe5c0601af0415dd","scripts":{"dev":"webpack-dev-server --config config/webpack.config.dev.js","lint":"eslint --ext .js --ext .jsx src/","test":"echo \"Error: no test specified\" && exit 1","build":"npm run clear && webpack --config config/webpack.config.prod.js","clear":"rimraf dist","deploy":"npm run clear:gh-pages && webpack --config config/webpack.config.ghpages.js","lint-fix":"eslint --fix --ext .js --ext .jsx src/","precommit":"npm run lint","clear:gh-pages":"rimraf ghpages"},"_npmUser":{"name":"yangchch","email":"yangchch6@yonyou.com"},"repository":{"url":"git+https://github.com/tinper-acs/ac-editor.git","type":"git"},"_npmVersion":"5.5.1","description":"Rich Text Editor","directories":{},"_nodeVersion":"8.9.0","dependencies":{"braft-editor":"^2.1.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"less":"^3.8.1","react":"^16.4.2","eslint":"^5.4.0","rimraf":"^2.6.2","webpack":"^4.17.0","babel-cli":"^6.26.0","bee-panel":"^1.0.0","node-sass":"^4.11.0","react-dom":"^16.4.2","babel-core":"^6.26.3","bee-button":"^1.0.6","bee-drawer":"0.0.2","bee-layout":"^1.2.7","css-loader":"^1.0.0","tinper-bee":"^1.2.7","url-loader":"^1.1.1","file-loader":"^2.0.0","html-loader":"^0.5.5","less-loader":"^4.1.0","sass-loader":"^7.1.0","webpack-cli":"^3.1.0","babel-eslint":"^8.2.6","babel-loader":"^7.1.5","style-loader":"^0.22.1","bee-clipboard":"^2.0.0","eslint-loader":"^2.1.0","webpack-merge":"^4.1.4","postcss-loader":"^3.0.0","markdown-styles":"^3.1.10","tinper-bee-core":"^0.4.1","babel-preset-env":"^1.7.0","react-hot-loader":"^4.3.4","babel-preset-react":"^6.24.1","webpack-dev-server":"^3.1.5","eslint-plugin-react":"^7.11.1","html-webpack-plugin":"^3.2.0","babel-preset-stage-1":"^6.24.1","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-promise":"^4.0.0","eslint-config-standard":"^11.0.0","eslint-plugin-jsx-a11y":"^6.1.1","eslint-plugin-standard":"^3.1.0","webpack-node-externals":"^1.7.2","mini-css-extract-plugin":"^0.4.2","uglifyjs-webpack-plugin":"^1.3.0","babel-preset-es2015-loose":"^8.0.0","open-browser-webpack-plugin":"0.0.5","babel-plugin-transform-runtime":"^6.23.0","optimize-css-assets-webpack-plugin":"^5.0.0","babel-plugin-transform-decorators-legacy":"^1.3.5"},"peerDependencies":{"react":"^15.3.0 || ^16.0.0","react-dom":"^15.3.0 || ^16.0.0","prop-types":"^15.6.0"},"_npmOperationalInternal":{"tmp":"tmp/ac-editor_1.0.2-alpha.0_1575272877890_0.26740233303227545","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"ac-editor","version":"1.0.2","keywords":["yyuap","editor","tinper-bee"],"author":{"name":"Kvkens","email":"yueming@yonyou.com"},"license":"MIT","_id":"ac-editor@1.0.2","maintainers":[{"name":"bjyxszd","email":"SLA0630@163.com"},{"name":"guoyongfeng","email":"13552329235@163.com"},{"name":"huayingjie","email":"huayjh@yonyou.com"},{"name":"jonyw","email":"jonyshi@126.com"},{"name":"kvkens","email":"kvkens@qq.com"},{"name":"liushaozhen","email":"804199994@qq.com"},{"name":"npm_yx","email":"1600714656@qq.com"},{"name":"whizbz","email":"731215820@qq.com"},{"name":"yangchch","email":"yangchch6@yonyou.com"},{"name":"yonyoufed","email":"guoyff@yonyou.com"},{"name":"zhaoyuchief","email":"zhaoyuchief@163.com"}],"homepage":"https://github.com/tinper-acs/ac-editor#readme","bugs":{"url":"https://github.com/tinper-acs/ac-editor/issues"},"dist":{"shasum":"ccfd9ad53eaa5b12043404c5aee12136f7834b88","tarball":"https://registry.npmjs.org/ac-editor/-/ac-editor-1.0.2.tgz","fileCount":5,"integrity":"sha512-AWz9T4sMkBEfkJwLXD0o6cYtL0PdyCdbeVznhQJek+WTQ54FkN1oib8p7PIf4/Xm4pMaU+zivMaCnuGtTEplzQ==","signatures":[{"sig":"MEQCIBX+DCjpFofbKWZpRnvqRFmootls9Bq1s+ovsr2nfgRZAiBJBkBKPo7rkIHej1KCANYoNLqavu9WIvudnFsLpZdUGQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":492548,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5ML3CRA9TVsSAnZWagAASJIP/jvehXhy0AceJ3d3ut9n\n3IhwM1vYShj+S+BkGsPMOUiopBZ/YFcV9gGOgmh+6auVE7cpSwWZqfmBsxU9\na3mDDK+MnwAyjcBtvNAmVAZeZegkqx/Yk4Luyba2IuzBjllu14Y5Dps5uGx+\noojQV4W263V8eHnK/lRxgQ47QkVl4AojiHSG04oOhxIkO35LRaGG8n0PvMVE\nuwLQGYbBEHRp5LYoohqiMtiIIqCaWq+dWr6tp2X0WAhf+ZsvLPtgZ+6/Psc5\nSvE7wiAT69y6mSWeD8PiKKSv3eSvqFwNqZLJTDdICWGFgBaTDPHBnV1gv9+y\nfT+PB/jc5oz1HVqm89XhlHloktDZzO09KuJddZ47brjIhTpsndRz3zBKtFAt\nJ0zVxbpJX5CD39mQ1fusZZyw4Fk1X1cxqZOy9/gT6CXaws+zOo1bQwVT2C0/\ngMpDSIHml9m01iPF3Va9F3jlrBia3cl2uSy6Ab78Vu58n2qpTqMY9AO3U6Nk\nUekrt2d2zBikNqVuj9Z8pifUZItJ0tTl7hIlr0EJY0RED+zMp5WoT/osCL4f\nOUKDt32teaAh3vuI917VXqnI1+17m7m9NjRWCEjQwwEKm9RZxz9r4gO+gqWz\nLr8ejjuo5pRZERMoBsn6KQDlsmGlHEI0KCEZCMpQRPMSu6AWRGEC3vI+b7mD\nYo7T\r\n=PWM9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","gitHead":"4e286221c728a800ff921dfdbe5c0601af0415dd","scripts":{"dev":"webpack-dev-server --config config/webpack.config.dev.js","lint":"eslint --ext .js --ext .jsx src/","test":"echo \"Error: no test specified\" && exit 1","build":"npm run clear && webpack --config config/webpack.config.prod.js","clear":"rimraf dist","deploy":"npm run clear:gh-pages && webpack --config config/webpack.config.ghpages.js","lint-fix":"eslint --fix --ext .js --ext .jsx src/","precommit":"npm run lint","clear:gh-pages":"rimraf ghpages"},"_npmUser":{"name":"yangchch","email":"yangchch6@yonyou.com"},"repository":{"url":"git+https://github.com/tinper-acs/ac-editor.git","type":"git"},"_npmVersion":"5.5.1","description":"Rich Text Editor","directories":{},"_nodeVersion":"8.9.0","dependencies":{"braft-editor":"^2.1.3"},"_hasShrinkwrap":false,"devDependencies":{"less":"^3.8.1","react":"^16.4.2","eslint":"^5.4.0","rimraf":"^2.6.2","webpack":"^4.17.0","babel-cli":"^6.26.0","bee-panel":"^1.0.0","node-sass":"^4.11.0","react-dom":"^16.4.2","babel-core":"^6.26.3","bee-button":"^1.0.6","bee-drawer":"0.0.2","bee-layout":"^1.2.7","css-loader":"^1.0.0","tinper-bee":"^1.2.7","url-loader":"^1.1.1","file-loader":"^2.0.0","html-loader":"^0.5.5","less-loader":"^4.1.0","sass-loader":"^7.1.0","webpack-cli":"^3.1.0","babel-eslint":"^8.2.6","babel-loader":"^7.1.5","style-loader":"^0.22.1","bee-clipboard":"^2.0.0","eslint-loader":"^2.1.0","webpack-merge":"^4.1.4","postcss-loader":"^3.0.0","markdown-styles":"^3.1.10","tinper-bee-core":"^0.4.1","babel-preset-env":"^1.7.0","react-hot-loader":"^4.3.4","babel-preset-react":"^6.24.1","webpack-dev-server":"^3.1.5","eslint-plugin-react":"^7.11.1","html-webpack-plugin":"^3.2.0","babel-preset-stage-1":"^6.24.1","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-promise":"^4.0.0","eslint-config-standard":"^11.0.0","eslint-plugin-jsx-a11y":"^6.1.1","eslint-plugin-standard":"^3.1.0","webpack-node-externals":"^1.7.2","mini-css-extract-plugin":"^0.4.2","uglifyjs-webpack-plugin":"^1.3.0","babel-preset-es2015-loose":"^8.0.0","open-browser-webpack-plugin":"0.0.5","babel-plugin-transform-runtime":"^6.23.0","optimize-css-assets-webpack-plugin":"^5.0.0","babel-plugin-transform-decorators-legacy":"^1.3.5"},"peerDependencies":{"react":"^15.3.0 || ^16.0.0","react-dom":"^15.3.0 || ^16.0.0","prop-types":"^15.6.0"},"_npmOperationalInternal":{"tmp":"tmp/ac-editor_1.0.2_1575273207366_0.4753359789240861","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-09-07T13:40:08.927Z","modified":"2024-08-30T07:16:28.534Z","0.0.1":"2018-09-07T13:40:09.112Z","1.0.0":"2018-09-08T12:58:42.227Z","1.0.1":"2018-10-10T10:09:38.078Z","1.0.2-alpha.0":"2019-12-02T07:47:58.047Z","1.0.2":"2019-12-02T07:53:27.604Z"},"bugs":{"url":"https://github.com/tinper-acs/ac-editor/issues"},"author":{"name":"Kvkens","email":"yueming@yonyou.com"},"license":"MIT","homepage":"https://github.com/tinper-acs/ac-editor#readme","keywords":["yyuap","editor","tinper-bee"],"repository":{"url":"git+https://github.com/tinper-acs/ac-editor.git","type":"git"},"description":"Rich Text Editor","maintainers":[{"email":"15330079920@163.com","name":"rongqb"},{"email":"1479605026@qq.com","name":"duxue"},{"email":"wang1084@126.com","name":"jwangyangls"},{"email":"18810786213@163.com","name":"shaohlr"},{"email":"474733244@qq.com","name":"honely1314"},{"email":"liu_xiangyang@sina.cn","name":"xiaoshutong"},{"email":"guoyff@yonyou.com","name":"yonyoufed"},{"email":"jonyshi@126.com","name":"jonyw"},{"email":"13552329235@163.com","name":"guoyongfeng"},{"email":"kvkens@qq.com","name":"kvkens"},{"email":"731215820@qq.com","name":"whizbz"},{"email":"1600714656@qq.com","name":"npm_yx"},{"email":"SLA0630@163.com","name":"bjyxszd"},{"email":"banyudu+tinper@gmail.com","name":"tinper-bot"},{"email":"gaox2025f@gmail.com","name":"gaox2025f"},{"email":"gcht@163.com","name":"gcht163"},{"email":"kvkens@gmail.com","name":"cnkvkens"},{"email":"zzjbarry@126.com","name":"diozhu"},{"email":"617065682@qq.com","name":"wangjings123"}],"readme":"# 富文本编辑器 AcEditor\n\n一个基于draft-js的Web富文本编辑器，适用于React框架，兼容主流现代浏览器。\n\n## 何时使用\n\n富文本编辑器\n\n## 如何使用\n\n```\n使用yarn安装\nyarn add ac-editor\n\n使用npm安装\nnpm install ac-editor --save\n\nimport React from 'react';\n// 引入编辑器以及EditorState子模块\nimport AcEditor, { EditorState } from 'ac-editor';\n// 引入编辑器样式\nimport 'ac-editor/dist/index.css';\n\nexport default class EditorDemo extends React.Component {\n\n  state = {\n      editorState: null\n  }\n\n  async componentDidMount () {\n    // 假设此处从服务端获取html格式的编辑器内容\n    const htmlContent = await fetchEditorContent()\n    // 使用EditorState.createFrom将html字符串转换为编辑器需要的editorState数据\n    this.setState({\n      editorState: EditorState.createFrom(htmlContent)\n    })\n  }\n\n  submitContent = async () => {\n    // 在编辑器获得焦点时按下ctrl+s会执行此方法\n    // 编辑器内容提交到服务端之前，可直接调用editorState.toHTML()来获取HTML格式的内容\n    const htmlContent = this.state.editorState.toHTML();\n    const result = await saveEditorContent(htmlContent);\n  }\n\n  handleEditorChange = (editorState) => {\n    this.setState({ editorState });\n  }\n\n  render () {\n    const { editorState } = this.state;\n    return (\n      <div className=\"my-component\">\n        <AcEditor\n          value={editorState}\n          onChange={this.handleEditorChange}\n          onSave={this.submitContent}\n        />\n      </div>\n    )\n\n  }\n\n}\n\n```\n\n## 代码演示\n\n\n## API \n\n[文档参考](https://www.yuque.com/margox/be/gz44tn)\n\n[文档参考](https://www.yuque.com/margox/be/mrgy92)\n\n## 注意事项\n\n暂无\n\n## 更新日志\n\n\n\n","readmeFilename":"README.md"}