{"_id":"@ckeditor5-custom-build/decoupled-document-editor","_rev":"7-a7a691b096a15ef7ec091223ea31cd9d","time":{"0.1.0":"2021-11-13T02:56:19.466Z","created":"2021-11-13T02:58:45.454Z","0.1.1":"2021-11-13T02:58:45.774Z","modified":"2022-04-04T23:10:29.086Z","0.1.2":"2021-11-13T04:30:24.470Z","0.1.3":"2021-11-15T08:49:47.901Z","0.1.4":"2021-11-20T20:01:05.986Z"},"name":"@ckeditor5-custom-build/decoupled-document-editor","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.1":{"name":"@ckeditor5-custom-build/decoupled-document-editor","version":"0.1.1","author":{"name":"Hamidreza Behzadi","email":"hamidbehzadi71@gmail.com"},"license":"SEE LICENSE IN LICENSE.md","description":"A custom CKEditor 5 build with custom uploadAdapter","main":"./lib/ckeditor.js","module":"./lib/ckeditor.js","repository":{"type":"git","url":"git+https://github.com/hamid-bhz/ckeditor5-custom-build.git"},"bugs":{"url":"https://github.com/hamid-bhz/ckeditor5-custom-build/issues"},"homepage":"https://github.com/hamid-bhz/ckeditor5-custom-build#readme","keywords":["ckeditor","ckeditor5","ckeditor 5","ckeditor5-feature","ckeditor5-plugin","ckeditor5-react","ckeditor5-custom","ckeditor5-custom-build","uploadAdapter"],"scripts":{"build":"webpack --mode production"},"devDependencies":{"@ckeditor/ckeditor5-alignment":"^31.0.0","@ckeditor/ckeditor5-autoformat":"^31.0.0","@ckeditor/ckeditor5-basic-styles":"^31.0.0","@ckeditor/ckeditor5-dev-utils":"^25.4.5","@ckeditor/ckeditor5-dev-webpack-plugin":"^25.4.5","@ckeditor/ckeditor5-editor-decoupled":"^31.0.0","@ckeditor/ckeditor5-essentials":"^31.0.0","@ckeditor/ckeditor5-font":"^31.0.0","@ckeditor/ckeditor5-heading":"^31.0.0","@ckeditor/ckeditor5-image":"^31.0.0","@ckeditor/ckeditor5-indent":"^31.0.0","@ckeditor/ckeditor5-link":"^31.0.0","@ckeditor/ckeditor5-list":"^31.0.0","@ckeditor/ckeditor5-paragraph":"^31.0.0","@ckeditor/ckeditor5-paste-from-office":"^31.0.0","@ckeditor/ckeditor5-table":"^31.0.0","@ckeditor/ckeditor5-theme-lark":"^31.0.0","@ckeditor/ckeditor5-typing":"^31.0.0","css-loader":"^5.2.7","postcss":"^8.3.11","postcss-loader":"^4.3.0","raw-loader":"^4.0.2","style-loader":"^2.0.0","terser-webpack-plugin":"^4.2.3","webpack":"^4.46.0","webpack-cli":"^4.9.1"},"_id":"@ckeditor5-custom-build/decoupled-document-editor@0.1.1","_nodeVersion":"12.22.7","_npmVersion":"6.14.15","dist":{"integrity":"sha512-/+UttDe3WtZFfuRB9tqU801rQHUV08CqdzhQQ1UmjxQ+mMiMXj6l+Vku4gVq0jgTqT5lTIK7+NrjlciYyQ7x7Q==","shasum":"e4418d9f637159a5412425102b7ae6b44c54ab7b","tarball":"https://registry.npmjs.org/@ckeditor5-custom-build/decoupled-document-editor/-/decoupled-document-editor-0.1.1.tgz","fileCount":5,"unpackedSize":6672523,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFWFmmRcB3dOBWsUfAFC0s1Fr7q7jDxt/qlemiF9VsQyAiEAnzqXFTdEPB6GjEycgx1NrEbVWV1wWtxlLCQ1vlhZhlY="}]},"_npmUser":{"name":"hamid.bhz","email":"hamidbehzadi71@gmail.com"},"directories":{},"maintainers":[{"name":"hamid.bhz","email":"hamidbehzadi71@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/decoupled-document-editor_0.1.1_1636772325506_0.27586804668355147"},"_hasShrinkwrap":false},"0.1.2":{"name":"@ckeditor5-custom-build/decoupled-document-editor","version":"0.1.2","author":{"name":"Hamidreza Behzadi","email":"hamidbehzadi71@gmail.com"},"license":"SEE LICENSE IN LICENSE.md","description":"A custom CKEditor 5 build with custom uploadAdapter","main":"./lib/ckeditor.js","module":"./lib/ckeditor.js","repository":{"type":"git","url":"git+https://github.com/hamid-bhz/ckeditor5-custom-build.git"},"bugs":{"url":"https://github.com/hamid-bhz/ckeditor5-custom-build/issues"},"homepage":"https://github.com/hamid-bhz/ckeditor5-custom-build#readme","keywords":["ckeditor","ckeditor5","ckeditor 5","ckeditor5-feature","ckeditor5-plugin","ckeditor5-react","ckeditor5-custom","ckeditor5-custom-build","uploadAdapter"],"scripts":{"build":"webpack --mode production"},"devDependencies":{"@ckeditor/ckeditor5-alignment":"^31.0.0","@ckeditor/ckeditor5-autoformat":"^31.0.0","@ckeditor/ckeditor5-basic-styles":"^31.0.0","@ckeditor/ckeditor5-dev-utils":"^25.4.5","@ckeditor/ckeditor5-dev-webpack-plugin":"^25.4.5","@ckeditor/ckeditor5-editor-decoupled":"^31.0.0","@ckeditor/ckeditor5-essentials":"^31.0.0","@ckeditor/ckeditor5-font":"^31.0.0","@ckeditor/ckeditor5-heading":"^31.0.0","@ckeditor/ckeditor5-image":"^31.0.0","@ckeditor/ckeditor5-indent":"^31.0.0","@ckeditor/ckeditor5-link":"^31.0.0","@ckeditor/ckeditor5-list":"^31.0.0","@ckeditor/ckeditor5-paragraph":"^31.0.0","@ckeditor/ckeditor5-paste-from-office":"^31.0.0","@ckeditor/ckeditor5-table":"^31.0.0","@ckeditor/ckeditor5-theme-lark":"^31.0.0","@ckeditor/ckeditor5-typing":"^31.0.0","css-loader":"^5.2.7","postcss":"^8.3.11","postcss-loader":"^4.3.0","raw-loader":"^4.0.2","style-loader":"^2.0.0","terser-webpack-plugin":"^4.2.3","webpack":"^4.46.0","webpack-cli":"^4.9.1"},"gitHead":"459107452910cb91e3fbc8117c0cd97f99a6d403","_id":"@ckeditor5-custom-build/decoupled-document-editor@0.1.2","_nodeVersion":"12.22.7","_npmVersion":"6.14.15","dist":{"integrity":"sha512-+da5cJj7Z5BtUzf8p9yoItFPZgH7R31g9XaeuaaVbxRlJeEFWcj68OKsnaa6jHKLOGFjJfnXGcvIVwpHyBPPPg==","shasum":"e32d383bba02f8568e9905e12d5b52bbb68ad569","tarball":"https://registry.npmjs.org/@ckeditor5-custom-build/decoupled-document-editor/-/decoupled-document-editor-0.1.2.tgz","fileCount":5,"unpackedSize":6672498,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdzIsK+GJTmJ96cWAlOvWQRqJpcTkIAj0j9bfG9Eu+7gIgbrl/gDv8hfOpuK8M842dmbeJ59sPikHJVjhwSxXqO20="}]},"_npmUser":{"name":"hamid.bhz","email":"hamidbehzadi71@gmail.com"},"directories":{},"maintainers":[{"name":"hamid.bhz","email":"hamidbehzadi71@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/decoupled-document-editor_0.1.2_1636777824184_0.8845942009342018"},"_hasShrinkwrap":false},"0.1.3":{"name":"@ckeditor5-custom-build/decoupled-document-editor","version":"0.1.3","author":{"name":"Hamidreza Behzadi","email":"hamidbehzadi71@gmail.com"},"license":"SEE LICENSE IN LICENSE.md","description":"A custom CKEditor 5 build with custom uploadAdapter","main":"./lib/ckeditor.js","module":"./lib/ckeditor.js","repository":{"type":"git","url":"git+https://github.com/hamid-bhz/ckeditor5-custom-build.git"},"bugs":{"url":"https://github.com/hamid-bhz/ckeditor5-custom-build/issues"},"homepage":"https://github.com/hamid-bhz/ckeditor5-custom-build#readme","keywords":["ckeditor","ckeditor5","ckeditor 5","ckeditor5-feature","ckeditor5-plugin","ckeditor5-react","ckeditor5-custom","ckeditor5-custom-build","uploadAdapter"],"scripts":{"build":"webpack --mode production"},"devDependencies":{"@ckeditor/ckeditor5-alignment":"^31.0.0","@ckeditor/ckeditor5-autoformat":"^31.0.0","@ckeditor/ckeditor5-basic-styles":"^31.0.0","@ckeditor/ckeditor5-dev-utils":"^25.4.5","@ckeditor/ckeditor5-dev-webpack-plugin":"^25.4.5","@ckeditor/ckeditor5-editor-decoupled":"^31.0.0","@ckeditor/ckeditor5-essentials":"^31.0.0","@ckeditor/ckeditor5-font":"^31.0.0","@ckeditor/ckeditor5-heading":"^31.0.0","@ckeditor/ckeditor5-image":"^31.0.0","@ckeditor/ckeditor5-indent":"^31.0.0","@ckeditor/ckeditor5-link":"^31.0.0","@ckeditor/ckeditor5-list":"^31.0.0","@ckeditor/ckeditor5-paragraph":"^31.0.0","@ckeditor/ckeditor5-paste-from-office":"^31.0.0","@ckeditor/ckeditor5-table":"^31.0.0","@ckeditor/ckeditor5-theme-lark":"^31.0.0","@ckeditor/ckeditor5-typing":"^31.0.0","css-loader":"^5.2.7","postcss":"^8.3.11","postcss-loader":"^4.3.0","raw-loader":"^4.0.2","style-loader":"^2.0.0","terser-webpack-plugin":"^4.2.3","webpack":"^4.46.0","webpack-cli":"^4.9.1"},"gitHead":"b804180196179b9949af11b4581047048fd5f07a","_id":"@ckeditor5-custom-build/decoupled-document-editor@0.1.3","_nodeVersion":"12.22.7","_npmVersion":"6.14.15","dist":{"integrity":"sha512-lBwsKljPtSauyZ4wyQ+4V97/9TxAEKo+5Ol5HR97tt4SidSS+YB2Mouh/Fd2slHK6da3961Teyxo9G6aTei5DQ==","shasum":"de762b5637e9615da3880b34e7459040d6b7fcfe","tarball":"https://registry.npmjs.org/@ckeditor5-custom-build/decoupled-document-editor/-/decoupled-document-editor-0.1.3.tgz","fileCount":5,"unpackedSize":6672939,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGdQG6B4T+FyQVWOsGSmGx7bkFZI+9rVqvO8CxldTG4AAiEAm0MlSzmc0r+LyY2tB/SojFbETWD6kQ6N8fM/ZsHYmgU="}]},"_npmUser":{"name":"hamid.bhz","email":"hamidbehzadi71@gmail.com"},"directories":{},"maintainers":[{"name":"hamid.bhz","email":"hamidbehzadi71@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/decoupled-document-editor_0.1.3_1636966187710_0.5349230454734322"},"_hasShrinkwrap":false},"0.1.4":{"name":"@ckeditor5-custom-build/decoupled-document-editor","version":"0.1.4","author":{"name":"Hamidreza Behzadi","email":"hamidbehzadi71@gmail.com"},"license":"SEE LICENSE IN LICENSE.md","description":"A custom CKEditor 5 build with custom uploadAdapter","main":"./lib/ckeditor.js","module":"./lib/ckeditor.js","repository":{"type":"git","url":"git+https://github.com/hamid-bhz/ckeditor5-custom-build.git"},"bugs":{"url":"https://github.com/hamid-bhz/ckeditor5-custom-build/issues"},"homepage":"https://github.com/hamid-bhz/ckeditor5-custom-build#readme","keywords":["ckeditor","ckeditor5","ckeditor 5","ckeditor5-feature","ckeditor5-plugin","ckeditor5-react","ckeditor5-custom","ckeditor5-custom-build","uploadAdapter"],"scripts":{"build":"webpack --config webpack/webpack.config.js"},"devDependencies":{"@ckeditor/ckeditor5-alignment":"^31.0.0","@ckeditor/ckeditor5-autoformat":"^31.0.0","@ckeditor/ckeditor5-basic-styles":"^31.0.0","@ckeditor/ckeditor5-dev-utils":"^25.4.5","@ckeditor/ckeditor5-dev-webpack-plugin":"^25.4.5","@ckeditor/ckeditor5-editor-decoupled":"^31.0.0","@ckeditor/ckeditor5-essentials":"^31.0.0","@ckeditor/ckeditor5-font":"^31.0.0","@ckeditor/ckeditor5-heading":"^31.0.0","@ckeditor/ckeditor5-image":"^31.0.0","@ckeditor/ckeditor5-indent":"^31.0.0","@ckeditor/ckeditor5-link":"^31.0.0","@ckeditor/ckeditor5-list":"^31.0.0","@ckeditor/ckeditor5-paragraph":"^31.0.0","@ckeditor/ckeditor5-paste-from-office":"^31.0.0","@ckeditor/ckeditor5-table":"^31.0.0","@ckeditor/ckeditor5-theme-lark":"^31.0.0","@ckeditor/ckeditor5-typing":"^31.0.0","css-loader":"^5.2.7","postcss":"^8.3.11","postcss-loader":"^4.3.0","raw-loader":"^4.0.2","style-loader":"^2.0.0","terser-webpack-plugin":"^4.2.3","webpack":"^4.46.0","webpack-cli":"^4.9.1"},"gitHead":"8d3ac3ac67acb8e11ef46127095d9dc29cb0490f","_id":"@ckeditor5-custom-build/decoupled-document-editor@0.1.4","_nodeVersion":"12.22.7","_npmVersion":"6.14.15","dist":{"integrity":"sha512-OwDYVKFsR8oZzQa9foz5VPqI1STvF4wPOUooyFgzCEBo9KsSZeIQdO64EBEy0edMatt+c5+niBM3kuyE2dWoNw==","shasum":"7822c583682dc4c5d187cd7c0e3ba395c6f88478","tarball":"https://registry.npmjs.org/@ckeditor5-custom-build/decoupled-document-editor/-/decoupled-document-editor-0.1.4.tgz","fileCount":4,"unpackedSize":1051421,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhmVQBCRA9TVsSAnZWagAAvpwP/2JTDifk1I8UhrUbLb54\n+wyAdsYc50c9AkIf6XH3OTI1vtBoJwnoX6fWdoBKeI4/gduMnp/AJobQ1WPi\nr+F/iHepc9q0RV/HQetr6oeJRMQm3vs1VEPIIcQV5zPHOMNhnUuYekvnYJC3\nwfLkwzyIxT9g6bIX0/g7KpSg+q2RrQ+W+MEJHTSOGxyxgTYi4G8TzzMQMKWI\nYwGSErDK9X6nM65M6Zu3xpxUHUxELW1WrrCz6nTBcf2b1Dvk7FAZQH8rNrv6\nTtGhp2ogbNhHKUKJXZ1kHkRWxdQo/VglX5Rg9qDBljxEUPrF9xkZB2QxPREP\nxHmkizzUyP1CzPJXtHz7BCXD4zZ6QuphmBVsx6pr4DezHr/JM4FRcNtFsw8q\nc0AuAexMgwjOOdIhGIRsmj6CG1SO40xXHaMlOCU7CXRtpv6JUnrrdmL2t4OG\n0DbicmLrWPPAWr6FZXQab+z+XzoNTqmfaW4v11l+FuY+rtKnTUgr6+7bl8IK\nsOItEZ0a3Z3r0Whg+Hu+k4KACpY+9fziSf9PWXzvfP7oxuHmhC0bHGX2244V\nsYnPKITc+h+eXorxwVvaUkeIeDBDehXazAH4rlMzbLlN3Np8Z7Q/rKv8b8im\noNX7+J0m6i1Ko+QFuu6ugI7rhUVw10JRyo2uiuld4PpqkbT/MLZByUlVwrF1\nf8Yu\r\n=F9Tc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIETmle/SipDQAfpc97shl4rmeFBvNR+E2YaOBeC6hbJrAiBRM++GttmZMIjCbIiQ2FMzHfR4OrtNOj8R8C24WntCSQ=="}]},"_npmUser":{"name":"hamid.bhz","email":"hamidbehzadi71@gmail.com"},"directories":{},"maintainers":[{"name":"hamid.bhz","email":"hamidbehzadi71@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/decoupled-document-editor_0.1.4_1637438465750_0.1784617787071494"},"_hasShrinkwrap":false}},"maintainers":[{"name":"hamid.bhz","email":"hamidbehzadi71@gmail.com"}],"description":"A custom CKEditor 5 build with custom uploadAdapter","homepage":"https://github.com/hamid-bhz/ckeditor5-custom-build#readme","keywords":["ckeditor","ckeditor5","ckeditor 5","ckeditor5-feature","ckeditor5-plugin","ckeditor5-react","ckeditor5-custom","ckeditor5-custom-build","uploadAdapter"],"repository":{"type":"git","url":"git+https://github.com/hamid-bhz/ckeditor5-custom-build.git"},"author":{"name":"Hamidreza Behzadi","email":"hamidbehzadi71@gmail.com"},"bugs":{"url":"https://github.com/hamid-bhz/ckeditor5-custom-build/issues"},"license":"SEE LICENSE IN LICENSE.md","readme":"# CKEditor 5 custom build\n\nA custom CKEditor 5 build with custom uploadAdapter\n\n## Installation\n\n`npm i @ckeditor5-custom-build/decoupled-document-editor`\n\nOr\n\n`yarn add @ckeditor5-custom-build/decoupled-document-editor`\n\nOr add this package to your `package.json` file:\n\n```\n\"dependencies\": {\n  \"@ckeditor5-custom-build/decoupled-document-editor\": \"0.1.4\"\n}\n```\n\n## Plugins\n\n```javascript\n[\n  Alignment,\n  Autoformat,\n  Bold,\n  Essentials,\n  FontBackgroundColor,\n  FontColor,\n  FontFamily,\n  FontSize,\n  Heading,\n  Image,\n  ImageCaption,\n  ImageResize,\n  ImageStyle,\n  ImageToolbar,\n  ImageUpload,\n  Indent,\n  IndentBlock,\n  Italic,\n  Link,\n  List,\n  ListStyle,\n  Paragraph,\n  PasteFromOffice,\n  Table,\n  TableCellProperties,\n  TableProperties,\n  TableToolbar,\n  TextTransformation,\n  Underline,\n];\n```\n\n## Usage\n\n```javascript\nimport { CKEditor } from \"@ckeditor/ckeditor5-react\";\nimport DecoupledDocumentEditor from \"@ckeditor5-custom-build/decoupled-document-editor\";\n\nconst Editor = () => {\n  function uploadAdapter(loader) {\n    return {\n      upload: () => {\n        return new Promise((resolve, reject) => {\n          loader.file.then((file) => {\n            console.log(\"file\", file);\n            // if you want to upload file to your server\n            axios\n              .post(\"YOUR_SERVER_ADDRESS\")\n              .then((res) => {\n                resolve({\n                  default: `FILE_ADDRESS`,\n                });\n              })\n              .catch((err) => {\n                reject(err);\n              });\n          });\n        });\n      },\n    };\n  }\n\n  function uploadPlugin(editor) {\n    editor.plugins.get(\"FileRepository\").createUploadAdapter = (loader) => {\n      return uploadAdapter(loader);\n    };\n  }\n\n  return (\n    <CKEditor\n      name=\"editor\"\n      editor={DecoupledDocumentEditor}\n      data=\"\"\n      onReady={(editor) => {\n        editor.ui\n          .getEditableElement()\n          .parentElement.insertBefore(\n            editor.ui.view.toolbar.element,\n            editor.ui.getEditableElement()\n          );\n      }}\n      onChange={(event, editor) => {\n        const data = editor.getData();\n        console.log(data);\n      }}\n      config={{\n        extraPlugins: [uploadPlugin],\n      }}\n    />\n  );\n};\n```\n","readmeFilename":"README.md"}