diff --git a/client/src/components/Markdown/Editor/CellCode.vue b/client/src/components/Markdown/Editor/CellCode.vue index 59a5cf4e9246..2a9466f03de8 100644 --- a/client/src/components/Markdown/Editor/CellCode.vue +++ b/client/src/components/Markdown/Editor/CellCode.vue @@ -18,7 +18,7 @@ const props = defineProps({ }, mode: { type: String, - default: "javascript", + default: "json", }, }); diff --git a/client/src/components/Markdown/Editor/CellEditor.vue b/client/src/components/Markdown/Editor/CellEditor.vue index 9f703700db58..162068ad27c3 100644 --- a/client/src/components/Markdown/Editor/CellEditor.vue +++ b/client/src/components/Markdown/Editor/CellEditor.vue @@ -5,7 +5,7 @@
{{ cell.name }} - +

@@ -32,6 +32,16 @@ interface CellType { const cells = ref>(parseMarkdown(props.markdownText)); +function getMode(cellName: string) { + switch (cellName) { + case "galaxy": + return "python"; + case "markdown": + return "markdown"; + } + return "json"; +} + function onClick(cellIndex: number, cellType: string) { console.log([cellIndex, cellType]); }