Quotes for rich text editor

default discord avatar
lucas_c
2 months ago
2

HI!, I'm trying to build a quotes button for the rich text editor, but I want it to be editable, I mean, to click an edit button or something like that and have a modal open with the quoted text and other fields like author, how can I achieve this?

  • discord user avatar
    jesschow
    Payload Team
    2 months ago

    @lucas_c could you make a separate Quotes collection and add a relationship to it within your richText? Otherwise, I think a custom rich text element / component will be the way to go here.

  • discord user avatar
    Jarrod
    Payload Team
    2 months ago

    @lucas_c You might be able to take some hints from the markdown example

    https://github.com/payloadcms/rich-text-with-markdown
Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.