This commit is contained in:
2025-05-10 03:49:47 +08:00
parent 1d10cf5888
commit b4c367b799
59 changed files with 61142 additions and 2384 deletions

View File

@@ -1,4 +1,4 @@
import { createEditorInstance } from '@kevisual/codemirror/dist/editor.json';
import { createEditorInstance } from '@kevisual/codemirror/json';
import { useEffect, useRef } from 'react';
export const App = () => {
const ref = useRef<HTMLDivElement>(null);

View File

@@ -11,7 +11,6 @@ export const App = ({ typescript }: AppProps) => {
}, []);
const init = () => {
const editor = createEditorInstance(ref.current!, { typescript });
editor.dom.style.height = '100%';
};
return (
<div className='h-full w-full bg-gray-400'>