diff --git a/src/parser/model/ParserHtml.ts b/src/parser/model/ParserHtml.ts index b53bdff74..db5f86d80 100644 --- a/src/parser/model/ParserHtml.ts +++ b/src/parser/model/ParserHtml.ts @@ -9,7 +9,7 @@ import BrowserParserHtml from './BrowserParserHtml'; type StringObject = Record; type HTMLParseResult = { - html?: ComponentDefinitionDefined | ComponentDefinitionDefined[]; // TODO replace with components + html: ComponentDefinitionDefined | ComponentDefinitionDefined[]; // TODO replace with components css?: CssRuleJSON[]; }; @@ -301,7 +301,7 @@ const ParserHtml = (em?: EditorModel, config: ParserConfig & { returnArray?: boo */ parse(str: string, parserCss?: any, opts: HTMLParserOptions = {}) { const conf = em?.get('Config') || {}; - const res: HTMLParseResult = {}; + const res: HTMLParseResult = { html: [] }; const cf: ObjectAny = { ...config, ...opts }; const options = { ...config.optionsHtml,