Thanks for your quick reply. So there’s no option for parseRule to split or close parent Node…
At the end I added simple logic in transformPastedHTML (DirectEditorProps).
transformPastedHTML: (html: string) => {
return html.replace(/<br[^>]*>/g, '</p><p>')
}
This is not a complete solution but can bypass the problem in some case. It would be great parseRule can accept option.
/* Suggestion */
{
tag: 'p',
breakPoint: [
{ tag: 'br' },
],
... // other options
}