Options
Menu

Module CodeEditor

Module that contains several helper functions related to hawtio's code editor

module

CodeEditor

main

CodeEditor

Index

Functions

autoFormatEditor

  • autoFormatEditor(editor: CodeMirrorEditor)
  • Auto formats the CodeMirror editor content to pretty print

    method

    autoFormatEditor

    for

    CodeEditor

    static

    Parameters

    • editor: CodeMirrorEditor

createEditorSettings

  • createEditorSettings(options?: any{}): any
  • Used to configures the default editor settings (per Editor Instance)

    method

    createEditorSettings

    for

    CodeEditor

    static

    Parameters

    • options?: any optional

    Returns any

detectTextFormat

  • detectTextFormat(value: any): string
  • Tries to figure out what kind of text we're going to render in the editor, either text, javascript or XML.

    method

    detectTextFormat

    for

    CodeEditor

    static

    Parameters

    • value: any

    Returns string

Generated using TypeDoc