{"_id":"@albatarnik/editorjs-table","name":"@albatarnik/editorjs-table","dist-tags":{"latest":"2.0.4"},"versions":{"2.0.4":{"name":"@albatarnik/editorjs-table","description":"Table for Editor.js ( forked version )","version":"2.0.4","license":"MIT","main":"./dist/table.js","scripts":{"build":"webpack --mode production","build:dev":"webpack --mode development --watch","lint":"eslint -c ./.eslintrc --ext .js --fix ."},"repository":{"type":"git","url":"git+https://github.com/editor-js/table.git"},"author":{"name":"CodeX Team, forked by Kamal Albatarni","email":"team@ifmo.su"},"keywords":["codex","codex-editor","table","editor.js","editorjs"],"devDependencies":{"autoprefixer":"^9.3.1","css-loader":"^1.0.0","cssnano":"^4.1.7","eslint":"^5.8.0","eslint-config-codex":"github:codex-team/eslint-config","postcss-import":"^12.0.1","postcss-loader":"^3.0.0","postcss-nested":"^4.1.0","postcss-nesting":"^7.0.0","style-loader":"^0.23.1","svg-inline-loader":"^0.8.0","webpack":"^4.29.5","webpack-cli":"^3.2.3"},"gitHead":"83dc5d6969f6962feeffacc39ad037830da8e83b","bugs":{"url":"https://github.com/editor-js/table/issues"},"homepage":"https://github.com/editor-js/table#readme","_id":"@albatarnik/editorjs-table@2.0.4","_nodeVersion":"19.0.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-KarAHHtGrJXhYgrgamIzTnjVqdNectIy5bXkAd2JGG+2gFlOgkDsvSHs9+SX5w9q/XRKTXpAXAVny6fmPgtzQQ==","shasum":"82ad9f6fc26ac6afe4815149db1efe0b8f499c67","tarball":"https://registry.npmjs.org/@albatarnik/editorjs-table/-/editorjs-table-2.0.4.tgz","fileCount":8,"unpackedSize":73988,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBwGnK9cvH4PpekbRBHcUVg96VDVjB/npoPs8YSjDsscAiEAjWQqR0D+3roy+YcEr6q5TtS+xRqk+Dp5s3tenBJsVpA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtEiuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoAVA/+I8HTqsM2bX4YkDwd9lyHFx0Yje6b0MzSEIla3iGJ7WA5VKUZ\r\nIU2KxZXxAKkY8csR6E/EWC+XEKpIWTajdPqq67fG2yV6WlL5r6ptJWkTjVul\r\nEOD2mDVAhi9GaWTbW9HUJtZMx6TThd+UUIJfulyWedEq3yhaSYRJ7Ekblg/7\r\nylaYYILFqDqPl1nxKqTUdoHpyRHnPKIKqz7zUdsU7zcxUCFPii/uIRAsp9HY\r\n/8cFfGn1VXaRF8iewD1OC86LhVC21X07X3n13Mcg82hv99br/SLxZR87wfoM\r\nDqiMHwkw5Ke/B0ramVSAy4KqUIqg9Boq/vQNOBfGWxE4gqCqmMQm7UdX2Ccj\r\nza96Q1GgJ38aEhKunIpAQldwJQDpy7bvOd5ogQRobkYuHGkjtzkn0LNBzQEj\r\nLwGJvciXRyRgO/Xjfz/SwDhEQ+iNKE/WQhy97B3OMzWLfa9YBQa8CJdSuxUO\r\nHYnS2QKIe11clCHLO1nFfF4681rKHgX8HPhQsguBW0d6OGgBODU8UrOA/44/\r\ndXLiHlPAjfWQXgQXJHP+Cj47CDOdf6NFx/oi9n9WVuPCqJ9QrimoPldTU67z\r\npSlou4HjM3VkEiGgHXeOQq7FWX94OL+9ioz2jgNm9f/arPyuF53zs3/J3oIN\r\nZeeaaxe4BoAwA1xFiudTYPg94zpQ7rAkPQo=\r\n=BjlW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"albatarnik","email":"albatarnik@gmail.com"},"directories":{},"maintainers":[{"name":"albatarnik","email":"albatarnik@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/editorjs-table_2.0.4_1672759469990_0.23167633862378745"},"_hasShrinkwrap":false}},"time":{"created":"2023-01-03T15:24:29.937Z","2.0.4":"2023-01-03T15:24:30.152Z","modified":"2023-01-03T15:24:30.334Z"},"maintainers":[{"name":"albatarnik","email":"albatarnik@gmail.com"}],"description":"Table for Editor.js ( forked version )","homepage":"https://github.com/editor-js/table#readme","keywords":["codex","codex-editor","table","editor.js","editorjs"],"repository":{"type":"git","url":"git+https://github.com/editor-js/table.git"},"author":{"name":"CodeX Team, forked by Kamal Albatarni","email":"team@ifmo.su"},"bugs":{"url":"https://github.com/editor-js/table/issues"},"license":"MIT","readme":"# Table tool\n\nThe Table Block for the [Editor.js](https://editorjs.io). Finally improved.\n\n![](https://capella.pics/41294cec-a2b3-4157-8399-ffefed3d8ffd.jpg)\n\n## Installation\n\nGet the package\n\n```shell\nnpm i --save @editorjs/table\n```\nor\n\n```shell\nyarn add @editorjs/table\n```\n\n## Usage\n\nAdd a new Tool to the `tools` property of the Editor.js initial config.\n\n```javascript\nimport Table from '@editorjs/table';\n\nvar editor = EditorJS({\n  tools: {\n    table: Table,\n  }\n});\n```\n\nOr init the Table tool with additional settings\n\n```javascript\nvar editor = EditorJS({\n  tools: {\n    table: {\n      class: Table,\n      inlineToolbar: true,\n      config: {\n        rows: 2,\n        cols: 3,\n      },\n    },\n  },\n});\n```\n\n## Config Params\n\n| Field              | Type     | Description          |\n| ------------------ | -------- | ---------------------------------------- |\n| `rows`             | `number` | initial number of rows. `2`  by default |\n| `cols`             | `number` | initial number of columns. `2` by default |\n\n## Output data\n\nThis Tool returns `data` in the following format\n\n| Field          | Type         | Description           |\n| -------------- | ------------ | ----------------------------------------- |\n| `withHeadings` | `boolean`    | Uses the first line as headings |\n| `content`      | `string[][]` | two-dimensional array with table contents |\n\n```json\n{\n  \"type\" : \"table\",\n  \"data\" : {\n    \"withHeadings\": true,\n    \"content\" : [ [ \"Kine\", \"Pigs\", \"Chicken\" ], [ \"1 pcs\", \"3 pcs\", \"12 pcs\" ], [ \"100$\", \"200$\", \"150$\" ] ]\n  }\n}\n```\n\n# Support maintenance 🎖\n\nIf you're using this tool and editor.js in your business, please consider supporting their maintenance and evolution.\n\n[http://opencollective.com/editorjs](http://opencollective.com/editorjs)\n\n# About CodeX\n\n<img align=\"right\" width=\"120\" height=\"120\" src=\"https://codex.so/public/app/img/codex-logo.svg\" hspace=\"50\">\n\nCodeX is a team of digital specialists around the world interested in building high-quality open source products on a global market. We are [open](https://codex.so/join) for young people who want to constantly improve their skills and grow professionally with experiments in leading technologies.\n\n| 🌐 | Join  👋  | Twitter | Instagram |\n| -- | -- | -- | -- |\n| [codex.so](https://codex.so) | [codex.so/join](https://codex.so/join) |[@codex_team](http://twitter.com/codex_team) | [@codex_team](http://instagram.com/codex_team) |\n","readmeFilename":"README.md"}