Skip to content

Unable to iterate styled blocks in the current selection #263

@wongk

Description

@wongk

Is your feature request related to a problem? Please describe.
I am trying to implement a "clear formatting" toolbar button. Any text selection may have several different stylings applied throughout the selection. The enriched APIs are limited to simple on and off states as it applies to each style, which cannot accommodate clearing all styling.

Describe the solution you'd like
Most rich text editors, including MDXEditor, which we are using for the web, have APIs for iterating through nodes/styled blocks within the selection. This makes it quite simple to clear the formatting on each node.

Describe alternatives you've considered
The only option at the moment appears to be manually manipulating the HTML, which is not a reasonable option unfortunately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions