1.9.0 • Published 6 months ago

@editorjs/list v1.9.0

Weekly downloads
10,145
License
MIT
Repository
github
Last release
6 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@alfresco/adf-process-services-cloud@everything-registry/sub-chunk-277aalda-editorgs-text-editorisha-rte-editorhorul-editorhsl-strapi-plugin-react-editorjsmagnerlrl-cms-tapirgp-editorjslike-water@bigbossstudio/strapi-plugin-editorjs@celmino/sdk-console@celmino/sdk@centrepointmedia/synoraui@brandontle/react-editor.js@canburaks/fibs-editor@caliobase/caliobase-ui@creators-view/fluid-ui@datahu/client@datahu/component@datahu/designer@core-edu/ui@cromwell/admin-panel@dicarbene/nuxt3-editorjs@ddoctors.ru/editorjs@ddoctors/editor@dxbz/gs-t-components@emilienkopp/ejs-factory@emilienkopp/html-factory@fakel/rest-admin@highoutput/neyar@fireenjin/editor@juancamejoalarcon/templator@hyype-inc/widget@itandu/admin-panelblockeditor-testdsstudio-editorjseditorjs-component-selectoreditorjs-inline-coloreditorjs-preconfigurededitorjs-quizeditorjs-reacteditor-js-componenteditor-js-themefibs-editornuxt-editorjsnext-step-projectmurph-projectmtxtrpcv2pn-block-editorquickvue-editorjsreact-editor-simple-imagereact-editor-simple-image.jssarman-vue-editor-jsui-duckumomega-foundationstd-pagesrinstallerssofa-ui-componentsstrapi-plugin-editorstrapi-plugin-editorjsstrapi-plugin-editorjs-fieldstrapi-plugin-k-editorjsstrapi-editorjsstrapi-plugin-react-editorjsstrapi-plugin-react-editorjs-extended-embedstrapi-academy-plus-editorjsyt-editoruse-editor-jssmart-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@laodeaksarr/rte@madnesslabs/enjin-editor@rjgf/rj-components@rypock/react-frontend@rainyland-dev/strapi-plugin-editorjs@realmocean/sdk@realmocean/editor@questflow/canvascms-tapirbyevolution-components@nwire/amit-design-system@oak-digital/strapi-plugin-react-editorjs@om-mediaworks/shacl-formchatnext-ui@mockswitch/cli@shohrux_saidov/document-editordrafts@techdemocrat/fluid-uidoreactadotaila
1.9.0

6 months ago

1.8.0

1 year ago

1.7.0

2 years ago

1.6.2

3 years ago

1.6.1

3 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

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago