Ace API Reference
    Preparing search index...

    Variable export=

    "export=": {
        defaultOptions: TextAreaOptions;
        transformTextarea(
            element: HTMLTextAreaElement,
            options?: TextAreaOptions,
        ): Editor;
    }

    Type declaration

    • defaultOptions: TextAreaOptions

      Default startup options.

    • transformTextarea: function
      • Transforms a textarea element into an Ace editor instance.

        This function replaces the original textarea with an Ace editor, preserving the textarea's initial value and focus state. It creates a container with settings panel and provides full editor functionality.

        Parameters

        • element: HTMLTextAreaElement

          The textarea element to transform

        • Optionaloptions: TextAreaOptions

          Optional configuration options for the editor

        Returns Editor

        The created Ace editor instance