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

default discord avatar
sunricestudiolast year
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
    notchrlast year

    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
    last year

    @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
    sunricestudiolast year

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

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

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