How could let upload in RichText relate to specific "upload collection"?

default discord avatar
sunricestudio
last month
3

How could let upload in RichText relate to specific "upload collection"?


When I have mulitiple upload collections.


Don't show selector at admin panel.

  • default discord avatar
    notchr
    last month

    Good afternoon @sunricestudio - I'm not 100% sure, but I know the documentation for configuring Rich Text Uploads can be found here

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


    If that does not help you resolve your issue, I am happy to help debug.

  • discord user avatar
    tylandavis
    Payload Team
    last month

    @sunricestudio Add the following code to the config of the collections you

    don't

    want to include as relationships/uploads in your rich text editor:


    admin: {
      enableRichTextRelationship: false,
    },


    You can do the same thing for links:


    admin: {
      enableRichTextLink: false,
    },
  • default discord avatar
    sunricestudio
    last month

    @tylandavis It's what I want. Thanks you.

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.