Class RichTextDocument
Index
Constructors
Accessors
Methods
Constructors
constructor
Returns RichTextDocument
Accessors
blocks
- get blocks(): readonly (
| {
className?: string;
items: readonly (
| {
bold?: boolean;
italic?: boolean;
link?: string;
strikeThrough?: boolean;
subScript?: boolean;
superScript?: boolean;
target?: "_blank";
text: string;
underline?: boolean;
}
| {
bold?: boolean;
italic?: boolean;
link?: string;
strikeThrough?: boolean;
subScript?: boolean;
superScript?: boolean;
target?: "_blank";
underline?: boolean;
widget: {
data: { readonly [key: string]: unknown };
export: {};
whfsType: string;
};
}
)[];
tag: "p"
| "h1"
| "h2"
| "h3"
| "h4"
| "h5"
| "h6";
}
| {
widget: {
data: { readonly [key: string]: unknown };
export: {};
whfsType: string;
};
}
)[]Returns readonly (
| {
className?: string;
items: readonly (
| {
bold?: boolean;
italic?: boolean;
link?: string;
strikeThrough?: boolean;
subScript?: boolean;
superScript?: boolean;
target?: "_blank";
text: string;
underline?: boolean;
}
| {
bold?: boolean;
italic?: boolean;
link?: string;
strikeThrough?: boolean;
subScript?: boolean;
superScript?: boolean;
target?: "_blank";
underline?: boolean;
widget: {
data: { readonly [key: string]: unknown };
export: {};
whfsType: string;
};
}
)[];
tag: "p"
| "h1"
| "h2"
| "h3"
| "h4"
| "h5"
| "h6";
}
| {
widget: {
data: { readonly [key: string]: unknown };
export: {};
whfsType: string;
};
}
)[]
Methods
__get RawHTML
Returns Promise<string>
__hint Instance Id
Parameters
- widget: Widget
- instanceId: string
Returns void
add Block
Parameters
- tag: string
- className: undefined | string
- items: RTDBuildBlockItems
Returns Promise<void>
add Blocks
Parameters
- blocks: RTDBuildBlock[]
Returns Promise<void>
export
Export as buildable RTD
Returns Promise<ExportableRTD>
is Empty
Returns boolean
Deprecated
Use exportRTDToRawHTML in hscompat