contentful / rich-text

Libraries for handling and rendering Rich Text 📄
MIT License
548 stars 108 forks source link

Contentful Blockquote #222

Open penguinsource opened 3 years ago

penguinsource commented 3 years ago

Hello there 👋

I am using the Blockquote inside the rich text but the data response doesn't come with any marking or any sort of way to tell that paragraph is formatted different.

Screenshots attached:

Contentful: image

Website: image

Thanks, Mihai

penguinsource commented 3 years ago

Ah and just to addon, I expected a sort of way to modify/view the html too for the rich text, giving me the ability to further manipulate the way my content is displayed, but I can't find that anywhere. Is this available? Also a preview function?

DanweDE commented 3 years ago

I am using the Blockquote inside the rich text but the data response doesn't come with any marking or any sort of way to tell that paragraph is formatted different.

Nodes formatted as "Blockquote" in the rich text editor should be of type blockquote, not paragraph as in your console output.

Assuming you've been using our Content Delivery API, did you publish the entry after formatting the paragraph as blockquote? Are you sure you're rendering the node as e.g. <blockquote> and that there isn't any CSS interfering making it appear as a normal paragraph?

I expected a sort of way to modify/view the html too

Contentful rich text isn't HTML. You can serialize it as HTML but you could just as well choose any other format. Therefore you also won't be able to edit Contentful rich text in our app as HTML.

Also a preview function?

There isn't currently a preview function. The point of the rich text editor is to show content in a formatted way while editing (compared to the normal text field's Markdown editor which has a preview functionality)