html
ai-research-agent / editor/rendering/html
Functions
cleanText()
function cleanText(delta): void
Parameters
Parameter | Type |
---|---|
|
Returns
void
deltaFromDom()
function deltaFromDom(editor, options): default
Parameters
Parameter | Type | Default value |
---|---|---|
|
| |
|
|
Returns
deltaFromHTML()
function deltaFromHTML(
editor,
html,
options?): default
Parameters
Parameter | Type |
---|---|
| |
|
|
|
Returns
docFromDom()
function docFromDom(editor, root): default
Parameters
Parameter | Type |
---|---|
| |
|
|
Returns
docFromHTML()
function docFromHTML(
editor,
html,
selection?): default
Parameters
Parameter | Type |
---|---|
| |
|
|
|
|
Returns
docToHTML()
function docToHTML(editor, doc): string
Parameters
Parameter | Type |
---|---|
| |
|
Returns
string
fromNode()
function fromNode(editor, dom): undefined | default | default[]
Parameters
Parameter | Type |
---|---|
| |
|
|
Returns
undefined
| default
| default
[]
inlineToHTML()
function inlineToHTML(editor, delta): string
Parameters
Parameter | Type |
---|---|
| |
|
Returns
string
isBRPlaceholder()
function isBRPlaceholder(editor, node): boolean
Parameters
Parameter | Type |
---|---|
| |
|
|
Returns
boolean
Interfaces
DeltaFromHTMLOptions
Properties
collapseWhitespace?
optional collapseWhitespace: boolean;
possiblePartial?
optional possiblePartial: boolean;
FromDomOptions
Properties
collapseWhitespace?
optional collapseWhitespace: boolean;
endNode?
optional endNode: Node;
includeIds?
optional includeIds: boolean;
offset?
optional offset: number;
possiblePartial?
optional possiblePartial: boolean;
root?
optional root: HTMLElement;
startNode?
optional startNode: Node;
Variables
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';