|
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
import { OptionAsDocument } from '../../common'; |
|
|
import { CssRuleJSON } from '../../css_composer/model/CssRule'; |
|
|
import { CssRuleJSON } from '../../css_composer/model/CssRule'; |
|
|
import { ComponentDefinitionDefined } from '../../dom_components/model/types'; |
|
|
import { ComponentDefinitionDefined } from '../../dom_components/model/types'; |
|
|
import Editor from '../../editor'; |
|
|
import Editor from '../../editor'; |
|
|
@ -26,7 +27,7 @@ export interface ParseNodeOptions extends HTMLParserOptions { |
|
|
skipChildren?: boolean; |
|
|
skipChildren?: boolean; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
export interface HTMLParserOptions { |
|
|
export interface HTMLParserOptions extends OptionAsDocument { |
|
|
/** |
|
|
/** |
|
|
* DOMParser mime type. |
|
|
* DOMParser mime type. |
|
|
* If you use the `text/html` parser, it will fix the invalid syntax automatically. |
|
|
* If you use the `text/html` parser, it will fix the invalid syntax automatically. |
|
|
@ -35,12 +36,6 @@ export interface HTMLParserOptions { |
|
|
*/ |
|
|
*/ |
|
|
htmlType?: DOMParserSupportedType; |
|
|
htmlType?: DOMParserSupportedType; |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Parse the string as HTML document. The result will include additional data (eg. doctype, head, etc.) |
|
|
|
|
|
* @default false |
|
|
|
|
|
*/ |
|
|
|
|
|
asDocument?: boolean; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Allow <script> tags. |
|
|
* Allow <script> tags. |
|
|
* @default false |
|
|
* @default false |
|
|
|