Options
All
  • Public
  • Public/Protected
  • All
Menu

Monarch代码编辑器类

Hierarchy

  • MonarchEditor

Implements

Index

Constructors

constructor

Properties

Private editor

editor: any

elem

elem: HTMLElement

Private extraLibs

extraLibs: any

hints

hints: IHintItem[]

提示规则

language

language: any

page

readOnly

readOnly: boolean

readers

readers: IHintReader[]

theme

theme: string

Methods

buildTypesHolders

  • 构建占位符的下组件

    Parameters

    Returns string

dispose

  • dispose(): void
  • 释放编辑器

    Returns void

focus

  • focus(): void
  • 得到焦点

    Returns void

getHints

  • getHints(model: any, position: any): IHintItem[]
  • 得到hints

    Parameters

    • model: any
    • position: any

    Returns IHintItem[]

getReader

  • Returns IHintReader[]

getValue

  • getValue(): string
  • 得到编辑器的值

    Returns string

    编辑器的值

init

  • init(): void
  • Returns void

insert

  • insert(s: string): void
  • 插入字符串

    Parameters

    • s: string

    Returns void

setValue

  • setValue(v: string): void
  • 设置编辑器的值

    Parameters

    • v: string

    Returns void

Generated using TypeDoc