瀏覽代碼

add onSave to props

reiji-h 2 年之前
父節點
當前提交
0872a81444
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      packages/editor/src/components/CodeMirrorEditorMain.tsx

+ 1 - 0
packages/editor/src/components/CodeMirrorEditorMain.tsx

@@ -60,6 +60,7 @@ export const CodeMirrorEditorMain = (props: Props): JSX.Element => {
     <CodeMirrorEditor
       editorKey={GlobalCodeMirrorEditorKey.MAIN}
       onChange={onChange}
+      onSave={onSave}
     />
   );
 };