RichTextDocument | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Class RichTextDocument

    Index

    Constructors

    Accessors

    • 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

    • Returns Promise<string>

      Use exportRTDToRawHTML in hscompat

    • Parameters

      • widget: Widget
      • instanceId: string

      Returns void

    • Parameters

      • tag: string
      • className: undefined | string
      • items: RTDBuildBlockItems

      Returns Promise<void>

    • Parameters

      • blocks: RTDBuildBlock[]

      Returns Promise<void>

    • Export as buildable RTD

      Returns Promise<ExportableRTD>

    • Returns boolean