I did not see a quote in rich text but I found this instruction and I already did it.
I went back to create a post in the document using this custom type. I do not understand how this
custom type being use in a paragraph like example below.
The idea is to come across as
pleasantly persistent
Sales experts like Steli Efti recommend a maximum of six touches for completely cold prospects.
I use Gatsby. Do I have to add a JSON un a config file first so I can see a quote in rich text? Can anyone tell me how to make a quote in a paragraph in rich text? Overall setup and usage are confusing. I wish it has a text editor like what we are using here.
Thank you. OK, so you should have a Slice now that is used ONLY for quotes, that means in the front end of your website you will need to style the output of this Rich Text with CSS so that it appears as a quote.
You can then build your page with these Slices like so: [Normal Rich Text] [Quote Rich Text] [Normal Rich Text]
I don't have a Gatsby example, but this is what the Quote Slice looks like in plain React:
This example only works when you building your whole page with Slices because you layer them on top of each other. Your current structure won't allow a quote by just adding one Slice, you need to break your entire page into Slices for this to work. Like that you can dynamically build a page.
You can read more about Slices here:
I would also recommend checking out our Gatsby Blog example which is built with Slices:
Or follow our Step By Step guide for Gatsby & Prismic:
Thanks.
system
(system)
closed as resolved, flag & select 'Something Else' to reopen.
9
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
I get the workaround of adding these as a slice but I still think quotes should be added as a format option to rich text.
To me, quoted text feels like it falls right in with mixing h1, p, and lists tags. You don't require creating different slices for each of those, why are quotes so different?
Look at just about any "rich text" editor and it has quotes: here in the forum, slack, markdown, etc.