Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Missing blockquote element in slate editor?

default discord avatar
mrc.wgnr2 years ago
6

payload@1.6.32



This is no caching issue, updating other elements works correctly. Can someone confirm?



https://discord.com/channels/967097582721572934/1079876635387498577/1081211388522934382

So it seems this is a bit misleading here. I'd definitely expected a toggle to explicitly format the specific part. This is also part of Slate's basic example:

https://www.slatejs.org/examples/richtext

We currently have to use a custom element for this which is a bit unfortunate

  • discord user avatar
    jmikrut
    2 years ago

    yes, blockquote is allowed in our types but we apparently never built support for it



    although this definitely needs to happen



    @577517418922901504

    if you are interested, you could make a PR and we would happily accept it - - although we will definitely get to this at some point

  • default discord avatar
    mrc.wgnr2 years ago

    Hey James, sure if i find the time i'll submit a PR. Should only be a tiny update. Thanks for the feedback tho

  • discord user avatar
    jmikrut
    2 years ago

    of course! that would be great. could get you on the contributors list



    also we need this for sure

  • default discord avatar
    mrc.wgnr2 years ago

    I have found a bit of time today:

    https://github.com/payloadcms/payload/pull/2533
  • discord user avatar
    jmikrut
    2 years ago

    amazing



    merged



    THANK YOU!!!

  • default discord avatar
    mrc.wgnr2 years ago

    No problem! That would be awesome

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.