Flarum (v2.0.0-beta.3)
    Preparing search index...
    interface EditorDriverParams {
        classNames: string[];
        disabled: boolean;
        inputListeners: Function[];
        oninput: Function;
        onsubmit: Function;
        placeholder: string;
        value: string;
    }
    Index

    Properties

    classNames: string[]

    An array of HTML class names to apply to the editor's main DOM element.

    disabled: boolean

    Whether the editor should be initially disabled.

    inputListeners: Function[]

    Each of these functions will be called on click, input, and keyup. No arguments will be passed.

    oninput: Function

    This is separate from inputListeners since the full serialized content will be passed to it. It is considered private API, and should not be used/modified by extensions not implementing EditorDriverInterface.

    onsubmit: Function

    This function will be called if submission is triggered programmatically via keybind. No arguments should be passed.

    placeholder: string

    An optional placeholder for the editor.

    value: string

    An optional initial value for the editor.