{"_id":"@7polo/editorjs-paragraph","_rev":"2-1a3ce7f197ab59d381024ec2221ab744","name":"@7polo/editorjs-paragraph","dist-tags":{"latest":"2.11.6"},"versions":{"2.11.4":{"name":"@7polo/editorjs-paragraph","version":"2.11.4","keywords":["codex editor","paragraph","editor.js","editorjs"],"description":"Paragraph Tool for Editor.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/editor-js/paragraph.git"},"main":"./dist/paragraph.umd.js","module":"./dist/paragraph.mjs","exports":{".":{"import":"./dist/paragraph.mjs","require":"./dist/paragraph.umd.js"}},"scripts":{"dev":"vite","build":"vite build","preview":"vite preview"},"author":{"name":"CodeX","email":"team@codex.so"},"devDependencies":{"vite":"^3.1.0","vite-plugin-css-injected-by-js":"^3.3.0","@editorjs/editorjs":"^2.26.4","@types/node":"^16.3.3","ts-loader":"^9.1.0","typescript":"^4.2.4","@7polo/editorjs-header2":"^0.0.3"},"dependencies":{"@codexteam/icons":"^0.0.4"},"_id":"@7polo/editorjs-paragraph@2.11.4","gitHead":"0591ababc30a868c3850db137fe35efb78fead09","bugs":{"url":"https://github.com/editor-js/paragraph/issues"},"homepage":"https://github.com/editor-js/paragraph#readme","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-ns4L5aoSIvjsq/ztQt9/LjyVB94XhsShN6OdNuux2vkajmuS3czhZAw/R1/fu/wZ27G8PaQn6M7JP6UaT2NC7Q==","shasum":"c26ac8700927201213bd365f4e20f2b90de290bc","tarball":"https://registry.npmjs.org/@7polo/editorjs-paragraph/-/editorjs-paragraph-2.11.4.tgz","fileCount":5,"unpackedSize":11292,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSzfvXMwEcL5rHGApNtQCJZqP1Zg2d3kAfXHqnKdU4/AIhAO9QCZjIN7EJvzJVASA7SmOWF5XRROr6ic7zNh8Fhaut"}]},"_npmUser":{"name":"7polo","email":"apologizebao@163.com"},"directories":{},"maintainers":[{"name":"7polo","email":"apologizebao@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/editorjs-paragraph_2.11.4_1714207053153_0.9252700698724692"},"_hasShrinkwrap":false},"2.11.5":{"name":"@7polo/editorjs-paragraph","version":"2.11.5","keywords":["codex editor","paragraph","editor.js","editorjs"],"description":"Paragraph Tool for Editor.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/editor-js/paragraph.git"},"main":"./dist/paragraph.umd.js","module":"./dist/paragraph.mjs","exports":{".":{"import":"./dist/paragraph.mjs","require":"./dist/paragraph.umd.js"}},"scripts":{"dev":"vite","build":"vite build","preview":"vite preview"},"author":{"name":"CodeX","email":"team@codex.so"},"devDependencies":{"vite":"^3.1.0","vite-plugin-css-injected-by-js":"^3.3.0","@editorjs/editorjs":"^2.26.4","@types/node":"^16.3.3","ts-loader":"^9.1.0","typescript":"^4.2.4","@7polo/editorjs-header2":"^0.0.3"},"dependencies":{"@codexteam/icons":"^0.0.4"},"_id":"@7polo/editorjs-paragraph@2.11.5","gitHead":"6d16537182d3de624183c407363e47efbe8198cd","bugs":{"url":"https://github.com/editor-js/paragraph/issues"},"homepage":"https://github.com/editor-js/paragraph#readme","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-z8H1j0Lbo2ZKATYG4xtN/47heDENgWR8JENxLNY7h6qHPt19RukE7aDgMU/7IxTMEBa2HRRrFXXlZAFqwXah8g==","shasum":"f505e3682f2d32b7960aebb5e642518f134b441a","tarball":"https://registry.npmjs.org/@7polo/editorjs-paragraph/-/editorjs-paragraph-2.11.5.tgz","fileCount":5,"unpackedSize":11905,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8ks1nz5wQzTkDFWUy97QdKgFVPhSbR1Omcs7AijgNiAIgYoNHMId3gbaghvvaChAZnUGJrQg3QybWaG5vMGx/W4I="}]},"_npmUser":{"name":"7polo","email":"apologizebao@163.com"},"directories":{},"maintainers":[{"name":"7polo","email":"apologizebao@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/editorjs-paragraph_2.11.5_1714207540973_0.7980958816484991"},"_hasShrinkwrap":false},"2.11.6":{"name":"@7polo/editorjs-paragraph","version":"2.11.6","keywords":["codex editor","paragraph","editor.js","editorjs"],"description":"Paragraph Tool for Editor.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/editor-js/paragraph.git"},"main":"./dist/paragraph.umd.js","module":"./dist/paragraph.mjs","exports":{".":{"import":"./dist/paragraph.mjs","require":"./dist/paragraph.umd.js"}},"scripts":{"dev":"vite","build":"vite build","preview":"vite preview"},"author":{"name":"CodeX","email":"team@codex.so"},"devDependencies":{"vite":"^3.1.0","vite-plugin-css-injected-by-js":"^3.3.0","@editorjs/editorjs":"^2.26.4","@types/node":"^16.3.3","ts-loader":"^9.1.0","typescript":"^4.2.4","@7polo/editorjs-header2":"^0.0.3"},"dependencies":{"@codexteam/icons":"^0.0.4"},"_id":"@7polo/editorjs-paragraph@2.11.6","gitHead":"d891553d32c41558462819ce884779f20b68c2bc","bugs":{"url":"https://github.com/editor-js/paragraph/issues"},"homepage":"https://github.com/editor-js/paragraph#readme","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-6AC9GisauDoxF2ZmU9gLfkCvX4xCCtYvKsWoHohKnuyi+GBQhDqkgcPlG+WN5V/rxsOp2BWfALFx5o8/s+4pmw==","shasum":"b0a15c9f848ce29f9725f7f4642e6a99da458a3f","tarball":"https://registry.npmjs.org/@7polo/editorjs-paragraph/-/editorjs-paragraph-2.11.6.tgz","fileCount":5,"unpackedSize":11883,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFMEyXVAwq7RKgfMvy/GAzc4Icu9zRvRpDq3XE5o1UNAIgArUPTX9WeUQuCgbuP6PYnG6G9oLeXvOOq+Reh08TMFQ="}]},"_npmUser":{"name":"7polo","email":"apologizebao@163.com"},"directories":{},"maintainers":[{"name":"7polo","email":"apologizebao@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/editorjs-paragraph_2.11.6_1714207982132_0.5918708117608578"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-27T08:37:33.076Z","2.11.4":"2024-04-27T08:37:33.336Z","modified":"2024-04-27T08:53:02.511Z","2.11.5":"2024-04-27T08:45:41.126Z","2.11.6":"2024-04-27T08:53:02.288Z"},"maintainers":[{"name":"7polo","email":"apologizebao@163.com"}],"description":"Paragraph Tool for Editor.js","homepage":"https://github.com/editor-js/paragraph#readme","keywords":["codex editor","paragraph","editor.js","editorjs"],"repository":{"type":"git","url":"git+https://github.com/editor-js/paragraph.git"},"author":{"name":"CodeX","email":"team@codex.so"},"bugs":{"url":"https://github.com/editor-js/paragraph/issues"},"license":"MIT","readme":"![](https://badgen.net/badge/Editor.js/v2.0/blue)\n\n# Paragraph Tool for Editor.js\n\nBasic text Tool for the [Editor.js](https://ifmo.su/editor).\n\n## Installation\n\nGet the package\n\n```shell\nyarn add @7polo/editorjs-paragraph\n```\n\nInclude module at your application\n\n```javascript\nimport Paragraph from '@7polo/editorjs-paragraph';\n```\n\n## Usage\n\nThe Paragraph tool is included at editor.js by default. So you don't need to connect it manually.\nIf you want to connect your customized version of this tool, do not forget to use the [`defaultBlock`](https://editorjs.io/configuration#change-the-default-block)\noption of the editor config.\n\nAdd a new Tool to the `tools` property of the Editor.js initial config.\n\n```javascript\nvar editor = new EditorJS({\n  ...\n\n  tools: {\n    ...\n    paragraph: {\n      class: Paragraph,\n      inlineToolbar: true,\n    },\n  }\n\n  ...\n});\n```\n\n## Config Params\n\nThe Paragraph Tool supports these configuration parameters:\n\n| Field | Type     | Description        |\n| ----- | -------- | ------------------ |\n| placeholder | `string` | The placeholder. Will be shown only in the first paragraph when the whole editor is empty.  |\n| preserveBlank | `boolean` | (default: `false`) Whether or not to keep blank paragraphs when saving editor data |\n\n## Output data\n\n| Field  | Type     | Description      |\n| ------ | -------- | ---------------- |\n| text   | `string` | paragraph's text |\n\n\n```json\n{\n    \"type\" : \"paragraph\",\n    \"data\" : {\n        \"text\" : \"Check out our projects on a <a href=\\\"https://github.com/codex-team\\\">GitHub page</a>.\",\n    }\n}\n```\n\n","readmeFilename":"README.md"}