These references can then be queried using the links node. It is to point out that this JSON structure only includes ids to possibly linked references. ![]() Import documentToReactComponents (content, options ) Įxample here is rough and has inline styling, but can use classNames etc etc, the caveat is that you might need to tweak the formatting in Contentful and go back and forth, as if you copy paste massive content into the editor and then try and display it you can find some inconsistencies, so you do need to do some of the structure and formatting work inside of the contentful rich text editor and you can’t quite copy paste a word document in there.įound this wasn’t documented very clearly, and wanted to share what is working at the moment. Contentful Rich Text Query Rich Text content and references Rendering Embedding an image in a Rich Text field Download assets for static distribution Enable the feature with the downloadLocal: true option. The Rich Text field response (blogPost.body) contains the following two top-level nodes json and links.json includes the Rich Text JSON tree representing whatever people put into the editor.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |