diff --git a/src/dom_components/model/types.ts b/src/dom_components/model/types.ts index 1ae622122..6f75e0e6d 100644 --- a/src/dom_components/model/types.ts +++ b/src/dom_components/model/types.ts @@ -189,7 +189,7 @@ export interface ComponentDefinitionDefined extends Omit[]; [key: string]: any; } diff --git a/src/parser/model/ParserHtml.ts b/src/parser/model/ParserHtml.ts index 07cb77a6f..0e61d1d69 100644 --- a/src/parser/model/ParserHtml.ts +++ b/src/parser/model/ParserHtml.ts @@ -205,12 +205,10 @@ export default (em?: EditorModel, config: ParserConfig = {}) => { // just make it content of the current node if (nodeChild === 1 && firstChild.nodeType === 3) { !model.type && (model.type = 'text'); - model.components = [ - { - type: 'textnode', - content: firstChild.nodeValue, - }, - ]; + model.components = { + type: 'textnode', + content: firstChild.nodeValue, + }; } else { model.components = this.parseNode(node, { ...opts,