An example of extending RichTextField?

default discord avatar
Jakey
2 weeks ago
6

A co-worker of mine is having difficulty wrapping the existing functionality of the RichTextField to have it fulfill the needs of the project we're on. We've seen many examples posted here on the discord community but it would go a long way just having a good starting spot for the RichTextField specifically.



I would immensely appreciate this if possible. Thankyou

  • discord user avatar
    Jarrod
    Payload Team
    2 weeks ago

    Does this repo help? Its pretty bare bones:

    https://github.com/JarrodMFlesch/payload-with-markdown-rte
  • default discord avatar
    Jakey
    2 weeks ago

    Checking it out!



    If I understand what I see here, you're adding a custom element to the richText field. However, we're looking to make a copy of richText and change some of the more deep functionality of it if that makes sense. @Jarrod

  • discord user avatar
    Jarrod
    Payload Team
    2 weeks ago

    Oh I see! hmmm I am not sure that there is a good example of that out there. If using the RTE that we provide does not work, would another editor (Lexical) be a better solution?

  • default discord avatar
    Jakey
    2 weeks ago

    it might be. I've seen some of the work being done on that front. I figured it wasn't ready just yet



    btw, my co-worker states that the example you provided is still helpful for other aspects of his understanding atm 🙂

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.