From 51f72d4d14b46915c3461218fdc4ec1e0e3a0898 Mon Sep 17 00:00:00 2001 From: Alexey Zinoviev Date: Mon, 29 Apr 2024 17:37:40 +0400 Subject: [PATCH] ezqms-762: extract base content from toc popup Signed-off-by: Alexey Zinoviev --- .../toc/TableOfContentsContent.svelte | 74 +++++++++++++++++++ .../toc/TableOfContentsPopup.svelte | 38 +--------- packages/text-editor/src/index.ts | 1 + 3 files changed, 78 insertions(+), 35 deletions(-) create mode 100644 packages/text-editor/src/components/toc/TableOfContentsContent.svelte 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} + +