+
+ {
+ this.setState({ value });
+ }}
+ onChange={(editor, value) => {
+ console.log("controlled", { value });
+ }}
+ options={{
+ lineNumbers: false,
+ mode: { name: this.props.type === "sql" ? "text/x-sql" : "application/json" },
+ autofocus: false,
+ styleActiveLine: true,
+ lineWrapping: true,
+ foldGutter: true,
+ gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
+ lint: false,
+ indentUnit: 2,
+ cursorHeight: 0.85,
+ placeholder: ""
+ }}
+ />
+
+
+
+
+ {
+ _.map(keyboardBaseBtns, item => {
+ const { key, label } = item;
+ return ;
+ })
+ }
+
+
+
+
+
+
+
+
+