While it is displayed correctly in Volto, attempting to edit it triggers an error:
Sorry, something went wrong with your request
Cannot get the end point in the node at path [0] because it has no end text node.
However, this issue does not occur when converting an empty <strong></strong> tag.
<p>foo<strong></strong></p>
The corresponding JSON structure for that case includes an empty text node within the <strong> tag:
When converting an HTML that contains an empty
<b></b>
tag into Slate format, like this:<p>foo<b></b></p>
It generates the following JSON structure:While it is displayed correctly in Volto, attempting to edit it triggers an error:
However, this issue does not occur when converting an empty
<strong></strong>
tag.<p>foo<strong></strong></p>
The corresponding JSON structure for that case includes an empty text node within the<strong>
tag:Please note that the issue occurs specifically with the empty
<b></b>
tag and not with the empty<strong></strong>
tag.