Closed SebbeJohansson closed 1 year ago
I came across this as well and the way it was produced was with a link, followed by a hard break, then more text.
Currently I'm just overriding the link mark in a custom schema to get around this.
[
{
"type": "paragraph",
"content": [
{
"text": "...",
"type": "text",
"marks": [
{
"type": "textStyle",
"attrs": {
"color": "rgb(23, 43, 77)"
}
}
]
},
{
"type": "hard_break"
},
{
"text": "...",
"type": "text",
"marks": [
{
"type": "link",
"attrs": {
"href": "...",
"uuid": null,
"anchor": null,
"target": null,
"linktype": "url"
}
}
]
},
{
"type": "hard_break"
},
{
"text": "...",
"type": "text",
"marks": [
{
"type": "link"
}
]
}
]
}
]
Hello gentleman. We're looking into this one.
Hello @SebbeJohansson Could you please have a look into our latest version. This should be solved by now. Thanks @ademarCardoso
I'll close this one. Feel free to open another one if needed.
@thiagosaife Thanks! Ill try to take a look!
Somehow (I still don't know how the editor managed this one) it is possible to add empty link object to the richtext field in the editor. These empty objects are not handled properly by the richTextRenderer.
Expected Behavior
I expect the rich text renderer to disregard any incorrect text elements.
Current Behavior
The rich text renderer fails to render which results in a loop that crashes the site.
Steps to Reproduce
Example rich text blok data:
It is the last part that is the issue.