diff options
Diffstat (limited to 'apps/web/app/components/editor/plugins/toc-plugin.ts')
| -rw-r--r-- | apps/web/app/components/editor/plugins/toc-plugin.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/web/app/components/editor/plugins/toc-plugin.ts b/apps/web/app/components/editor/plugins/toc-plugin.ts new file mode 100644 index 00000000..0fd7d1f0 --- /dev/null +++ b/apps/web/app/components/editor/plugins/toc-plugin.ts @@ -0,0 +1,10 @@ +'use client'; + +import { TocPlugin } from '@udecode/plate-heading/react'; + +export const tocPlugin = TocPlugin.configure({ + options: { + // isScroll: true, + topOffset: 80, + }, +}); |