Skip to content

Editor API

hackape edited this page Jul 19, 2017 · 1 revision

Editor

Editor is the data model to be passed to <AnyEditorComponents editor={editor} />

interfaceEditorProps{tabId: stringfilePath: stringgitBlame: objectcm: CodeMirror}interfaceEditor{id: stringtabId: stringfilePath: stringgetfile(): File// return file base on this.filePathgetcontent(): string// short cut to this.file.contentgitBlame: {show: booleandata: Any[]}update(editorProps: EditorProps): void}

Clone this wiki locally