UNPKG

ngx-codemirror

Version:

Codemirror directive for Angular (4.0+)

18 lines (17 loc) 613 B
import { ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core'; import { EditorConfiguration, EditorFromTextArea } from 'codemirror'; export declare class CodeMirrorDirective implements OnInit, OnChanges { private element; content: string; config: EditorConfiguration; onChange: EventEmitter<{ editorInstance: any; changes: any; }>; editorRef: EditorFromTextArea; constructor(element: ElementRef); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; getContent(): string; setOption(key: string, value: any): void; }