search
HTML RTE vs JSON RTE
The JSON Rich Text Editor stores content in plain text format, which can be understood and processed by all programming languages. Whereas the HTML RTE is limited and constrained to HTML markup.
JSON-formatted content helps developers render content to any front-end framework with immense flexibility and interoperability.
HTML code in source code viewer:
<p>This RTE is amazing.</p>
JSON RTE response code:
{
"entry":{
"title":"Entry 1",
"json_rte":{
"type":"doc",
"attrs":{
},
"uid":"a52aa19f3af54a61a32f1724831dc084",
"children":[
{
"type":"p",
"attrs":{
},
"uid":"c0a9f4affcef4409b3d23857d35f863b",
"children":[
{
"text":"This RTE is "
},
{
"text":"amazing",
"bold":true
},
{
"text":"."
}
]
}
],
"_version":2
},
"tags":[
"json_rte"
],
"locale":"en-us",
"uid":"bltc4d873bf4fd6f624",
"created_by":"blt7b815b05d2fe5dd8",
"updated_by":"blt7b815b05d2fe5dd8",
"created_at":"2021-07-15T09:51:40.418Z",
"updated_at":"2021-07-15T09:52:54.900Z",
"ACL":{
},
"_version":2,
"_in_progress":false
}
}
With the JSON-based editor, the developers can handle the HTML component, and content managers can undividedly focus on styling and generating high-quality content.
Hence, you will notice one significant difference between HTML and JSON RTE, the absence of the HTML source code viewer.
More articles in "More about JSON RTE"
Migrate Content from HTML RTE to JSON RTE using CLI
Learn morearrow_forward
Render JSON RTE content using JSON RTE Serializer
Learn morearrow_forward
Render JSON RTE Content via SDKs
Learn morearrow_forward
Benefits of JSON RTE for Developers
Learn morearrow_forward
Limitations for JSON Rich Text Editor
Learn morearrow_forward
Limitations of Embedded Entries and Assets
Learn morearrow_forward
JSON Rich Text Editor FAQs
Learn morearrow_forward
