Function copyHTMLToClipboard

  • Copy HTML to clipboard. When pasting into rich text field, pastes rich text. When pasting into plain text field, pastes: plain text, html, or markdown.

    Parameters

    • html: string

      The HTML content to be copied.

    • options: {
          pastePlainFormat: boolean;
      } = {}

      The options object.

      • pastePlainFormat: boolean

        default=0 0 - plain text 1 - markdown 2 - html

    Returns Promise<void>

    • A promise that resolves when the HTML is copied to the clipboard.