Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Ordered and unordered lists don't work #3166

Open
@weeebdev

Description

@weeebdev

Do you want to request a feature or report a bug?

It's rather a bug or my own mistake

What is the current behavior?

When I call RichUtils.toggleBlockType it doesn't add list

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/gmertk/e61z7nfa/.

See the sandbox https://codesandbox.io/s/draft-js-with-custom-components-rko84h?file=/src/CustomEditor.tsx

What is the expected behavior?

Added list when click on the corresponding button on the toolbar.

Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?

idk

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions