html
Documentation / editor/rendering/html
DeltaFromHTMLOptions​
Defined in: editor/rendering/html.ts:19
Properties​
Property | Type | Defined in |
---|---|---|
| editor/rendering/html.ts:21 | |
| editor/rendering/html.ts:20 |
FromDomOptions​
Defined in: editor/rendering/html.ts:24
Properties​
Property | Type | Defined in |
---|---|---|
| editor/rendering/html.ts:31 | |
| editor/rendering/html.ts:27 | |
| editor/rendering/html.ts:30 | |
| editor/rendering/html.ts:28 | |
| editor/rendering/html.ts:29 | |
| editor/rendering/html.ts:25 | |
| editor/rendering/html.ts:26 |
BLOCK_ELEMENTS​
const BLOCK_ELEMENTS: "address, article, aside, blockquote, editor, dd, div, dl, dt, fieldset, figcaption, figure, footer, form, header, hr, li, main, nav, noscript, ol, output, p, pre, section, table, tfoot, ul, video" = 'address, article, aside, blockquote, editor, dd, div, dl, dt, fieldset, figcaption, figure, footer, form, header, hr, li, main, nav, noscript, ol, output, p, pre, section, table, tfoot, ul, video';
Defined in: editor/rendering/html.ts:9
cleanText()​
function cleanText(delta: default): void;
Defined in: editor/rendering/html.ts:90
Parameters​
Parameter | Type |
---|---|
|
Returns​
void
deltaFromDom()​
function deltaFromDom(editor: Editor, options: FromDomOptions): default;
Defined in: editor/rendering/html.ts:99
Parameters​
Parameter | Type | Default value |
---|---|---|
|
| |
|
|
Returns​
deltaFromHTML()​
function deltaFromHTML(
editor: Editor,
html: string,
options?: DeltaFromHTMLOptions): default;
Defined in: editor/rendering/html.ts:64
Parameters​
Parameter | Type |
---|---|
| |
|
|
|
Returns​
docFromDom()​
function docFromDom(editor: Editor, root: HTMLElement): default;
Defined in: editor/rendering/html.ts:76
Parameters​
Parameter | Type |
---|---|
| |
|
|
Returns​
docFromHTML()​
function docFromHTML(
editor: Editor,
html: string,
selection?: EditorRange): default;
Defined in: editor/rendering/html.ts:60
Parameters​
Parameter | Type |
---|---|
| |
|
|
|
Returns​
docToHTML()​
function docToHTML(editor: Editor, doc: default): string;
Defined in: editor/rendering/html.ts:50
Parameters​
Parameter | Type |
---|---|
| |
|
Returns​
string
fromNode()​
function fromNode(editor: Editor, dom: HTMLElement): Line | Line[];
Defined in: editor/rendering/html.ts:81
Parameters​
Parameter | Type |
---|---|
| |
|
|
Returns​
inlineToHTML()​
function inlineToHTML(editor: Editor, delta: default): string;
Defined in: editor/rendering/html.ts:54
Parameters​
Parameter | Type |
---|---|
| |
|
Returns​
string
isBRPlaceholder()​
function isBRPlaceholder(editor: Editor, node: Node): boolean;
Defined in: editor/rendering/html.ts:35
Parameters​
Parameter | Type |
---|---|
| |
|
|
Returns​
boolean