Pathfinder 1e for Foundry VTT
    Preparing search index...

    HTML Editor

    Generic HTML text editor.

    Hierarchy

    • DocumentSheetV2
      • HTMLEditor
    Index

    Constructors

    • Parameters

      • Optionaloptions: {}

      Returns HTMLEditor

    Properties

    DEFAULT_OPTIONS: {
        classes: string[];
        form: { closeOnSubmit: boolean; submitOnChange: boolean };
        position: { height: number; width: number };
        sheetConfig: boolean;
        tag: string;
        window: { minimizable: boolean; resizable: boolean };
    } = ...
    PARTS: { form: {} } = ...

    Methods

    • Parameters

      • options: any

      Returns any

    • Returns { content: unknown; editable: boolean; path: any }

    • Parameters

      • event: any
      • form: any
      • submitData: any

      Returns any

    • Render an HTMLElement for the Application. An Application subclass must implement this method in order for the Application to be renderable.

      Parameters

      • context: any

        Context data for the render operation

      • options: any

        Options which configure application rendering behavior

      Returns Promise<{ form: HTMLElement | HTMLCollection }>

      The result of HTML rendering may be implementation specific. Whatever value is returned here is passed to _replaceHTML

    • Parameters

      • result: object
      • content: HTMLElement
      • options: object

      Returns void

    • Render the Application, creating its HTMLElement and replacing its innerHTML. Add it to the DOM if it is not currently rendered and rendering is forced. Otherwise, re-render its contents.

      Parameters

      • options: any

        Options which configure application rendering behavior. A boolean is interpreted as the "force" option. (default: {})

      • _options: any

      Returns Promise<HTMLEditor>

      A Promise which resolves to the rendered Application instance