Adding a Content-Type Property for Differentiating Text and Other text type in Rich Text Components #1488
crismaver1993
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Will be cool to add a property that allows us to differentiate between normal text, Bible verses, and formatted verse text within our rich text component. Currently, we're limited to plain rich text, but for our Christian ministry project, we need to tag certain sections—like Bible verses—with a specific type so that when we parse the JSON, we can easily identify and handle these different types of content.
For example:
Our goal is to embed a property in the content structure that would look something like this in JSON:
{ "content": { "type": "text" }, "content": { "type": "verse" }, "content": { "type": "verse_text" } ... }
This property (type) would allow us to clearly differentiate between standard text and Bible verses (or any other specific text format), making it easier to manage and render these blocks differently when needed.
note: verse and verse text type are examples of the idea. It could be another types name ( title, subtitle, body, message)
What do you think? It could be possible?
Beta Was this translation helpful? Give feedback.
All reactions