This commit is contained in:
Timothy J. Baek
2024-06-10 17:30:07 -07:00
parent f43b545bdd
commit 6e7e575a18
3 changed files with 17 additions and 3 deletions
+7 -1
View File
@@ -7,9 +7,15 @@
let loading = false;
let codeEditor;
const submitHandler = async () => {
loading = true;
// Call the API to submit the code
if (codeEditor) {
codeEditor.submitHandler();
}
};
</script>
@@ -17,7 +23,7 @@
<div class="mx-auto w-full md:px-0 h-full">
<div class=" flex flex-col max-h-[100dvh] h-full">
<div class="mb-2.5 flex-1 overflow-auto h-0 rounded-lg">
<CodeEditor />
<CodeEditor bind:this={codeEditor} />
</div>
<div class="pb-3">
<button