Add children for blocks. And can add opportunity convert inline tools in blocks?
<p>123<b>4</b>56<p>
now its look like a
{
type: "paragraph"
data: {
"text": "123<b>4</b>56"
}
}
but i want convert to
{
"type" : "paragraph",
"data" : {
"text" : "123",
"childrens": [
{
type:"bold",
text: "4"
}
]
}
},
Could you please explain your use case. For what purposes you want to use this structure? How you will render it?
Could you please explain your use case. For what purposes you want to use this structure? How you will render it?
I have component
For now, editorjs stores inline fragments inside the block鈥檚 data as HTML structures. The reason is simplifying render process. We are planning to add an option on how to store these fragments in output data: as inline-html, as markdown or as a JSON object
Most helpful comment
For now, editorjs stores inline fragments inside the block鈥檚 data as HTML structures. The reason is simplifying render process. We are planning to add an option on how to store these fragments in output data: as inline-html, as markdown or as a JSON object