diff --git a/packages/text-editor/src/components/toc/TableOfContentsContent.svelte b/packages/text-editor/src/components/toc/TableOfContentsContent.svelte
new file mode 100644
index 0000000000..45ffded39f
--- /dev/null
+++ b/packages/text-editor/src/components/toc/TableOfContentsContent.svelte
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+
+ {#each items as item}
+ {@const level = getIndentLevel(item.level)}
+
+ {/each}
+
+
+
+
diff --git a/packages/text-editor/src/components/toc/TableOfContentsPopup.svelte b/packages/text-editor/src/components/toc/TableOfContentsPopup.svelte
index 0cd0fd510c..3b1697bfbf 100644
--- a/packages/text-editor/src/components/toc/TableOfContentsPopup.svelte
+++ b/packages/text-editor/src/components/toc/TableOfContentsPopup.svelte
@@ -15,49 +15,17 @@
//
-->
-
-
-
-
diff --git a/packages/text-editor/src/index.ts b/packages/text-editor/src/index.ts
index a24d562eea..10af29dd16 100644
--- a/packages/text-editor/src/index.ts
+++ b/packages/text-editor/src/index.ts
@@ -36,6 +36,7 @@ export { default as TextEditorStyleToolbar } from './components/TextEditorStyleT
export { default as AttachIcon } from './components/icons/Attach.svelte'
export { default as TableIcon } from './components/icons/Table.svelte'
export { default as TableOfContents } from './components/toc/TableOfContents.svelte'
+export { default as TableOfContentsContent } from './components/toc/TableOfContentsContent.svelte'
export * from './components/node-view'
export { default } from './plugin'
export * from './types'