1.9.0 • Published 11 months ago

@editorjs/list v1.9.0

Weekly downloads
10,145
License
MIT
Repository
github
Last release
11 months ago

npm.io

List Tool for Editor.js

This Tool for the Editor.js allows you to add ordered or unordered (bulleted) lists to your article.

npm.io

Installation

Get the package

yarn add @editorjs/list

Include module at your application

import List from "@editorjs/list";

Optionally, you can load this tool from CDN JsDelivr CDN

Usage

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

import EditorJS from '@editorjs/editorjs';
import List from '@editorjs/list';

var editor = EditorJS({
  // ...
  tools: {
    ...
    list: {
      class: List,
      inlineToolbar: true,
      config: {
        defaultStyle: 'unordered'
      }
    },
  },
});

Config Params

FieldTypeDescription
defaultStylestringtype of a list: ordered or unordered, default is ordered

Tool's settings

npm.io

You can choose list`s type.

Output data

FieldTypeDescription
stylestringtype of a list: ordered or unordered
itemsstring[]the array of list's items
{
    "type" : "list",
    "data" : {
        "style" : "unordered",
        "items" : [
            "This is a block-styled editor",
            "Clean output data",
            "Simple and powerful API"
        ]
    }
},

I18n support

This tool supports the i18n api. To localize UI labels, put this object to your i18n dictionary under the tools section:

"list": {
  "Ordered": "Нумерованный",
  "Unordered": "Маркированный"
}

See more instructions about Editor.js internationalization here: https://editorjs.io/internationalization

@polo7/block-editorbyevolutioncytoscape.stickynote@infinitebrahmanuniverse/nolb-_edi@everything-registry/sub-chunk-277aalda-editorcms-tapircytoscape-stickynoteeditor-js-componenteditor-js-themeeditorjs-component-selectorfibs-editoreditorjs-preconfigurededitorjs-quizeditorjs-reacteditorjs-inline-colorgp-editorjsgs-text-editordraftsddoctors-editordoreactadotailadsstudio-editorjshorul-editorhsl-strapi-plugin-react-editorjsilla-builderisha-rte-editorpn-block-editorblockeditor-test@dxbz/gs-t-components@emilienkopp/ejs-factory@emilienkopp/html-factory@om-mediaworks/shacl-formlike-waterlrl-cms-tapirmagnersarman-vue-editor-jssrinstallerssofa-ui-componentsstrapi-academy-plus-editorjsstrapi-editorjssmart-editorstd-pagestrapi-plugin-editorstrapi-plugin-editorjsstrapi-plugin-editorjs-fieldstrapi-plugin-k-editorjsstrapi-plugin-react-editorjs-extended-embedstrapi-plugin-react-editorjsmurph-projectmtxtrpcv2nuxt-editorjsnext-step-projectreact-editor-simple-imagereact-editor-simple-image.jsquickvue-editorjsuse-editor-jsui-duckumomega-foundationyt-editor@rainyland-dev/strapi-plugin-editorjs@smileeye.edu.vn/editor@softkit/strapi-plugin-react-editorjs@questflow/canvas@shohrux_saidov/document-editor@todokek/react-editor.js@tienlucky/storage@vt7/vue-editor@virtual-spirit/vspace-labs@dicarbene/nuxt3-editorjs@juancamejoalarcon/templator@ddoctors.ru/editorjs@ddoctors/editor@kaniyarasu/react-editor.js@keystonejs-contrib/fields-editorjs@datahu/client@datahu/component@datahu/designer@fakel/rest-admin@creators-view/fluid-ui@canburaks/fibs-editor@evershop/evershopaalda--editor@cromwell/admin-panel@itandu/admin-panel@highoutput/neyar@lotsof/carpenter@lotsof/json-schema-form@mockswitch/cli@laodeaksarr/rteblock-article-js@rulab/adminjs-components@swiftease/atali-form@4kda/vuetify-cifrum-demo-app@wulperstudio/wulper-studio-editor@zdzcode/zc-web-vuejs-core@appconda/console-sdk@appconda/react-sdk@appconda/sdk@brandontle/react-editor.js
1.9.0

11 months ago

1.8.0

2 years ago

1.7.0

3 years ago

1.6.2

4 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.1

4 years ago

1.4.0

5 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago