Skip to content

Setup custom plugin that colors text based on regex match #859

@samballa07

Description

@samballa07

Hello, I have a use case that I think will require a custom plugin, but am having trouble setting it up.
I need the editor to dynamically change text color depending on if it matches a regex and only the text that matches the regex should be colored. It seems the Lexical dom is wiping out any html modifications I make to the editor html. To be clear, this is purely for user visualization as they edit content in the editor and i dont need custom markdown for colors. Could someone help point me in the right direction to get this solution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions