LWT JavaScript API
    Preparing search index...
    • Save the editor's form through the API.

      Parameters

      • form: HTMLFormElement

        The text editor form

      • textId: number

        Text ID to update, or 0 to create

      Returns Promise<TextSaveOutcome>

      Where the save ended up, or a message to show