1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

create TableEditor when CodeEditor mounted

This commit is contained in:
amedora
2018-06-28 13:29:24 +09:00
parent c9d05b1117
commit f0941f47dd

View File

@@ -184,6 +184,8 @@ export default class CodeEditor extends React.Component {
CodeMirror.Vim.defineEx('wq', 'wq', this.quitEditor)
CodeMirror.Vim.defineEx('qw', 'qw', this.quitEditor)
CodeMirror.Vim.map('ZZ', ':q', 'normal')
this.tableEditor = new TableEditor(new TextEditorInterface(this.editor))
}
expandSnippet (line, cursor, cm, snippets) {