diff --git a/frontend/src/lib/services/contentEditor.svelte.ts b/frontend/src/lib/services/contentEditor.svelte.ts index 857b501..765dd30 100644 --- a/frontend/src/lib/services/contentEditor.svelte.ts +++ b/frontend/src/lib/services/contentEditor.svelte.ts @@ -24,6 +24,9 @@ export class ContentEditorManager { mobileMode = $state<'hidden' | 'h30' | 'h50' | 'h70' | 'full'>('hidden'); isMobile = $state(false); + // Tab state — 'editor' | 'preview' | 'exercise' | 'quiz' | dynamic tabs from active_tabs ('c', 'python', 'circuit', 'velxio', 'flowchart') + activeTab = $state('editor'); + // Tree state contentTree = $state([]); assetsTree = $state([]); diff --git a/frontend/src/routes/teacher/content/+page.svelte b/frontend/src/routes/teacher/content/+page.svelte index 52728cf..c1886cb 100644 --- a/frontend/src/routes/teacher/content/+page.svelte +++ b/frontend/src/routes/teacher/content/+page.svelte @@ -1,6 +1,6 @@