Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace CodeMirrorEditor

The namespace for CodeMirrorEditor statics.

Index

Interfaces

Variables

Functions

Variables

Const defaultConfig

defaultConfig: Required<IConfig>

The default configuration options for an editor.

Functions

addCommand

  • addCommand(name: string, command: (cm: CodeMirror.Editor) => void): void
  • Add a command to CodeMirror.

    Parameters

    • name: string

      The name of the command to add.

    • command: (cm: CodeMirror.Editor) => void

      The command function.

        • (cm: CodeMirror.Editor): void
        • Parameters

          • cm: CodeMirror.Editor

          Returns void

    Returns void

Generated using TypeDoc