chore: super conversion wrap nodes in paragraph if requires parent
This commit is contained in:
@@ -111,7 +111,13 @@ export class HeadlessSuperConverter implements SuperConverterServiceInterface {
|
||||
|
||||
// Wrap text & link nodes with paragraph since they can't
|
||||
// be top-level nodes in Super
|
||||
if (type === 'text' || type === 'link' || type === 'unencrypted-image' || type === 'inline-file') {
|
||||
if (
|
||||
type === 'text' ||
|
||||
type === 'link' ||
|
||||
type === 'unencrypted-image' ||
|
||||
type === 'inline-file' ||
|
||||
node.isParentRequired()
|
||||
) {
|
||||
const paragraphNode = $createParagraphNode()
|
||||
paragraphNode.append(node)
|
||||
nodesToInsert.push(paragraphNode)
|
||||
|
||||
Reference in New Issue
Block a user