2.3.0 • Published 6 months ago

@editorjs/table v2.3.0

Weekly downloads
5,172
License
MIT
Repository
github
Last release
6 months ago

Table tool

The Table Block for the Editor.js. Finally improved.

npm.io

Installation

Get the package

yarn add @editorjs/table

Include module at your application

import Table from '@editorjs/table'

Optionally, you can load this tool from CDN JsDelivr CDN

Usage

Add a new Tool to the tools property of the Editor.js initial config.

import Table from '@editorjs/table';

var editor = EditorJS({
  tools: {
    table: Table,
  }
});

Or init the Table tool with additional settings

var editor = EditorJS({
  tools: {
    table: {
      class: Table,
      inlineToolbar: true,
      config: {
        rows: 2,
        cols: 3,
      },
    },
  },
});

Config Params

FieldTypeDescription
rowsnumberinitial number of rows. 2 by default
colsnumberinitial number of columns. 2 by default
withHeadingsbooleantoggle table headings. false by default

Output data

This Tool returns data in the following format

FieldTypeDescription
withHeadingsbooleanUses the first line as headings
contentstring[][]two-dimensional array with table contents
{
  "type" : "table",
  "data" : {
    "withHeadings": true,
    "content" : [ [ "Kine", "Pigs", "Chicken" ], [ "1 pcs", "3 pcs", "12 pcs" ], [ "100$", "200$", "150$" ] ]
  }
}

Support maintenance 🎖

If you're using this tool and editor.js in your business, please consider supporting their maintenance and evolution.

http://opencollective.com/editorjs

About CodeX

CodeX is a team of digital specialists around the world interested in building high-quality open source products on a global market. We are open for young people who want to constantly improve their skills and grow professionally with experiments in leading technologies.

🌐Join 👋TwitterInstagram
codex.socodex.so/join@codex_team@codex_team
@7polo/block-editor-vuebyevolution@infinitebrahmanuniverse/nolb-_edi@everything-registry/sub-chunk-277aalda-editorgs-text-editorhorul-editorhsl-strapi-plugin-react-editorjsgp-editorjslike-water@bigbossstudio/strapi-plugin-editorjs@celmino/sdk-console@celmino/sdk@casimir.one/vue-editorjs@chizhik/ui-lib@brandontle/react-editor.js@carabi/ui@bsol-oss/form-studio-answer-component@creators-view/fluid-ui@datahu/client@datahu/component@datahu/designer@culturehacklabs/genki-reloaded@cromwell/admin-panel@deskhero/dh_ui@dicarbene/nuxt3-editorjs@dxbz/gs-t-components@emilienkopp/ejs-factory@emilienkopp/html-factory@fakel/rest-admin@highoutput/neyar@fireenjin/editor@itfin/components@itandu/admin-panelexchange-react-uieditorjs-reacteditorjs-vueeditor-js-componenteditor-js-themenode-red-contrib-ui-editornuxt3-editorjsnext-step-projectmurph-projectmtxtrpcv2quickvue-editorjsreact-editor-simple-imagereact-editor-simple-image.jssarman-vue-editor-jsui-duckumomega-foundationstd-pagesrinstallersstrapi-plugin-editorstrapi-plugin-editorjsstrapi-plugin-editorjs-fieldstrapi-plugin-k-editorjsstrapi-editorjsstrapi-plugin-react-editorjsstrapi-plugin-react-editorjs-extended-embedstrapi-academy-plus-editorjssmart-editor@acf-int/strapi-plugin-editorjs@acf-int/strapi-plugin-react-editorjs@4kda/vuetify-cifrum-demo-app@keystonejs-contrib/fields-editorjs@kaniyarasu/react-editor.js@madnesslabs/enjin-editor@rjgf/rj-components@rypock/react-frontend@rainyland-dev/strapi-plugin-editorjs@realmocean/sdk@realmocean/editor@questflow/canvas@oak-digital/strapi-plugin-react-editorjs@om-mediaworks/shacl-form@mohamed-karawia/library@shohrux_saidov/document-editordrafts@techdemocrat/fluid-uidoreactadotaila@softkit/strapi-plugin-react-editorjs@smileeye.edu.vn/editor@vt7/vue-editor@todokek/react-editor.js@virtual-spirit/vspace-labs@zalastax/nolb-_edi@zdzcode/zc-web-vuejs-core@tienlucky/storage@wulperstudio/wulper-studio-editoraalda--editorblock-article-jsblock-json-editorall-in-one-editorjsbyevolution-components
2.3.0

6 months ago

2.2.1

1 year ago

2.2.2

11 months ago

2.1.2

1 year ago

2.2.0

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago

2.0.3

2 years ago

2.0.4

2 years ago

2.0.2

2 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.3.0

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

5 years ago