1.2.3 • Published 6 years ago

codex.editor.list v1.2.3

Weekly downloads
30
License
MIT
Repository
github
Last release
6 years ago

npm.io

List Tool for CodeX Editor

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

npm.io

Installation

Install via NPM

Get the package

npm i --save-dev codex.editor.list

Include module at your application

const List = require('codex.editor.list');

Download to your project's source dir

  1. Upload folder dist from repository
  2. Add dist/bundle.js file to your page.

Load from CDN

You can load specific version of package from jsDelivr CDN.

https://cdn.jsdelivr.net/npm/codex.editor.list@1.0.2

Then require this script on page with CodeX Editor.

<script src="..."></script>

Usage

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

var editor = CodexEditor({
  ...
  
  tools: {
    ...
    list: {
      class: List,
      inlineToolbar: true,
    },
  }
  
  ...
});

Config Params

This Tool has no config params

Tool's settings

npm.io

You can choose list`s type.

Output data

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

6 years ago

1.2.2

7 years ago

1.2.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago