-
Notifications
You must be signed in to change notification settings - Fork 23
Description
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.