Options
All
  • Public
  • Public/Protected
  • All
Menu

Module 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: function

A factory used to create a code editor.

Type declaration

KeydownHandler

KeydownHandler: function

A keydown handler type.

Notes

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

Type declaration

    • (instance: IEditor, event: KeyboardEvent): boolean
    • Parameters

      • instance: IEditor
      • event: KeyboardEvent

      Returns boolean

Object literals

Let defaultConfig

defaultConfig: object

The default configuration options for an editor.

autoClosingBrackets

autoClosingBrackets: true = true

codeFolding

codeFolding: false = false

fontFamily

fontFamily: null = null

fontSize

fontSize: null = null

insertSpaces

insertSpaces: true = true

lineHeight

lineHeight: null = null

lineNumbers

lineNumbers: false = false

lineWrap

lineWrap: "on" = "on"

matchBrackets

matchBrackets: true = true

readOnly

readOnly: false = false

rulers

rulers: undefined[] = []

tabSize

tabSize: number = 4

wordWrapColumn

wordWrapColumn: number = 80

Const defaultSelectionStyle

defaultSelectionStyle: object

The default selection style.

className

className: string = ""

color

color: string = "black"

displayName

displayName: string = ""

Generated using TypeDoc