Proxy class implements the ICodeMirror interface

Implements

Constructors

Properties

editable: boolean = true
editableCompartment: any = null
eventHandler: any = null
isMobile: boolean = false
state: EditorState
themeConfig: any = null
touchStart: number = ...
version?: string = "6.x"
view: EditorView

Methods

  • Sets the focus to the editor view. TODO: Problem: we cannot avoid automatic screen keyboard pop-ups on Android -> deactivate mechanism, because it does not work

    Parameters

    • OptionaldisableKeyboard: boolean = false

      true switches the screen keyboard off

    Returns void

  • Replaces a range in the given document. TODO: adapt to Code Mirror 5 format (from, to)

    Parameters

    • replacement: string

      replacement string

    • from: any

      begin of range

    • to: any

      end of range

    • Optional_origin: string

    Returns void

  • Experience: The touch events do not arrive, if the Editor is set to be not editable. The mechanism is not working this way.

    Parameters

    • event: TouchEvent

    Returns void