How to add upload to rich text editor

default discord avatar
labihi
last week
2

Hi, I'm new to payload cms and I find it amazing but I can't understand how to add the upload function to add images to the rich text editor, can you please help me?


In the screenshot it is shown that no upload icon is present

  • default discord avatar
    notchr
    last week

    Good morning @labihi Check out the documentation for rich text + uploading here:

    https://payloadcms.com/docs/fields/rich-text#upload-element


    Let me know if you're still stuck after checking that out!

  • default discord avatar
    labihi
    last week

    Good morning to you and thanks for the help, however I have already checked the docs but anyway I found the solution.


    You need a media collection in order for the button to appear but it wasn't stated in the docs it seems.

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.