4.9.4 • Published 6 months ago

@yoopta/lists v4.9.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Lists plugins

Lists include three plugins for Yoopta-Editor:

  • NumberedList
  • BulletedList
  • TodoList

Installation

yarn add @yoopta/lists

Usage

import { NumberedList, BulletedList, TodoList } from '@yoopta/lists';

const plugins = [NumberedList, BulletedList, TodoList];

const Editor = () => {
  return <YooptaEditor plugins={plugins} />;
};

NumberedList

Default classnames

  • .yoopta-numbered-list
  • .yoopta-numbered-list-count
  • .yoopta-numbered-list-content

Default options

const NumberedList = new YooptaPlugin({
  options: {
    display: {
      title: 'Numbered List',
      description: 'Create list with numbering',
    },
    shortcuts: ['1.'],
  },
});

How to extend

const plugins = [
  NumberedList.extend({
    renders: {
      numbered-list: (props) => <YourCustomComponent {...props} />
    },
    options: {
      shortcuts: [`<your custom shortcuts>`],
      display: {
        title: `<your custom title>`,
        description: `<your custom description>`,
      },
      HTMLAttributes: {
        className: '<your classname>',
        // ...other HTML attributes
      },
    },
  });
];

BulletedList

Default classnames

  • .yoopta-bulleted-list
  • .yoopta-bulleted-list-bullet
  • .yoopta-bulleted-list-content

Default options

const BulletedList = new YooptaPlugin({
  options: {
    display: {
      title: 'Bulleted List',
      description: 'Create bullet list',
    },
    shortcuts: ['-'],
  },
});

How to extend

const plugins = [
  BulletedList.extend({
    renders: {
      bulleted-list: (props) => <YourCustomComponent {...props} />
    },
    options: {
      shortcuts: [`<your custom shortcuts>`],
      display: {
        title: `<your custom title>`,
        description: `<your custom description>`,
      },
      HTMLAttributes: {
        className: '<your classname>',
        // ...other HTML attributes
      },
    },
  });
];

TodoList

Default classnames

  • .yoopta-todo-list
  • .yoopta-todo-list-checkbox
  • .yoopta-todo-list-checkbox-input
  • .yoopta-todo-list-content

Default options

const TodoList = new YooptaPlugin({
  options: {
    display: {
      title: 'Todo List',
      description: 'Track tasks',
    },
    shortcuts: ['[]'],
  },
});

How to extend

const plugins = [
  TodoList.extend({
    renders: {
      todo-list: (props) => <YourCustomComponent {...props} />
    },
    options: {
      shortcuts: [`<your custom shortcuts>`],
      display: {
        title: `<your custom title>`,
        description: `<your custom description>`,
      },
      HTMLAttributes: {
        className: '<your classname>',
        // ...other HTML attributes
      },
    },
  });
];
4.9.4

6 months ago

4.9.4-rc.1

6 months ago

4.9.4-rc.0

6 months ago

4.9.3

7 months ago

4.9.3-alpha.0

7 months ago

4.9.2

8 months ago

4.9.2-rc.0

8 months ago

4.9.2-rc.2

8 months ago

4.9.2-rc.1

8 months ago

4.9.0

9 months ago

4.9.1

8 months ago

4.8.5-rc.9

9 months ago

4.8.5-rc.10

9 months ago

4.8.5-rc.11

9 months ago

4.8.5-rc.7

9 months ago

4.8.5-rc.8

9 months ago

4.8.5-rc.6

9 months ago

4.8.5-rc.4

9 months ago

4.8.5-rc.5

9 months ago

4.8.3-rc.0

10 months ago

4.8.4-rc.0

9 months ago

4.8.4

9 months ago

4.8.3

10 months ago

4.8.1

10 months ago

4.8.0

10 months ago

4.8.2

10 months ago

4.7.1-rc.8

10 months ago

4.7.1-rc.4

10 months ago

4.7.1-rc.6

10 months ago

4.7.1-rc.7

10 months ago

4.7.1-rc.0

10 months ago

4.7.1-rc.1

10 months ago

4.7.1-rc.3

10 months ago

4.6.10-rc.0

11 months ago

4.7.0

11 months ago

4.6.10-rc.1

11 months ago

4.6.9-rc.1

11 months ago

4.6.9-rc.0

11 months ago

4.6.9

11 months ago

4.6.8

11 months ago

4.6.8-rc.2

11 months ago

4.6.8-rc.1

11 months ago

4.6.8-rc.0

11 months ago

4.6.7

12 months ago

4.6.7-rc.0

12 months ago

4.6.5-rc.2

12 months ago

4.6.6

12 months ago

4.6.5-rc.3

12 months ago

4.6.5

12 months ago

4.5.2-rc.1

1 year ago

4.5.2-rc.2

1 year ago

4.6.3-rc.0

1 year ago

4.5.2-rc.0

1 year ago

4.5.2-rc.3

1 year ago

4.6.4-rc.2

12 months ago

4.6.4-rc.1

12 months ago

4.6.4-rc.0

12 months ago

4.6.1

1 year ago

4.6.0

1 year ago

4.6.5-rc.1

12 months ago

4.6.3

1 year ago

4.6.2

1 year ago

4.6.4

12 months ago

4.6.3-rc.1

1 year ago

4.5.1

1 year ago

4.5.0

1 year ago

4.4.1

1 year ago

4.4.0

1 year ago

4.5.0-alpha.3

1 year ago

4.5.0-alpha.2

1 year ago

4.5.0-alpha.1

1 year ago

4.3.2

1 year ago

4.3.1

1 year ago

4.3.0

1 year ago

4.3.0-alpha.0

1 year ago

4.2.0

1 year ago

4.1.1

1 year ago

4.1.0

1 year ago

4.0.0

1 year ago

4.0.0-rc.15

1 year ago

4.0.0-rc.14

1 year ago

4.0.0-rc.12

1 year ago

4.0.0-rc.13

1 year ago

4.0.0-rc.11

1 year ago

4.0.0-rc.10

1 year ago

4.0.0-rc.9

1 year ago

4.0.0-rc.8

1 year ago

4.0.0-rc.7

1 year ago

4.0.0-rc.6

1 year ago

4.0.0-rc.5

1 year ago

4.0.0-rc.4

1 year ago

4.0.0-rc.3

1 year ago

4.0.0-rc.1

1 year ago

4.0.0-rc.0

1 year ago

4.0.0-rc.2

1 year ago

2.0.1

2 years ago

2.0.0

2 years ago

1.9.14-rc

2 years ago

1.9.15-rc

2 years ago

1.9.13-rc

2 years ago

1.9.12-rc

2 years ago

1.9.10-rc

2 years ago

1.9.11-rc

2 years ago

1.9.9-rc

2 years ago

1.9.7-rc

2 years ago

1.9.6-rc

2 years ago

1.9.8-rc

2 years ago

1.9.5-rc

2 years ago

1.9.4-rc

2 years ago

1.9.3-rc

2 years ago

1.9.2-rc

2 years ago

1.9.1-rc

2 years ago

1.9.0-rc

2 years ago