Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace CodeEditor

A namespace for code editors.

Notes

  • A code editor is a set of common assumptions which hold for all concrete editors.
  • Changes in implementations of the code editor should only be caused by changes in concrete editors.
  • Common JLab services which are based on the code editor should belong to IEditorServices.

Index

Type aliases

EdgeLocation

EdgeLocation: "top" | "topLine" | "bottom"

The location of requested edges.

Factory

Factory: (options: IOptions) => IEditor

Type declaration

KeydownHandler

KeydownHandler: (instance: IEditor, event: KeyboardEvent) => boolean

Type declaration

    • (instance: IEditor, event: KeyboardEvent): boolean
    • A keydown handler type.

      Notes

      Return true to prevent the default handling of the event by the editor.

      Parameters

      • instance: IEditor
      • event: KeyboardEvent

      Returns boolean

Variables

Const defaultConfig

defaultConfig: IConfig = ...

The default configuration options for an editor.

Const defaultSelectionStyle

defaultSelectionStyle: ISelectionStyle = ...

The default selection style.

Generated using TypeDoc