Options
All
  • Public
  • Public/Protected
  • All
Menu

CodeMirrorControl

Index

Properties

cm6

cm6: any

editor

editor: any

Points to a CodeMirror 6 EditorView instance.

joplinExtensions

joplinExtensions: { enableLanguageDataAutocomplete: { of: (enabled: boolean) => any }; completionSource: any }

Type declaration

  • enableLanguageDataAutocomplete: { of: (enabled: boolean) => any }

    Creates an extension that enables or disables languageData-based autocompletion.

    • of: (enabled: boolean) => any
        • (enabled: boolean): any
        • Parameters

          • enabled: boolean
  • completionSource: function
    • completionSource(completionSource: any): any

Methods

addExtension

  • addExtension(extension: any | any[]): void

execCommand

  • execCommand(name: string, ...args: any[]): any
  • Parameters

    • name: string
    • Rest ...args: any[]

registerCommand

supportsCommand

  • supportsCommand(name: string): boolean
  • Parameters

    • name: string