diff --git a/apps/client/src/ee/template/pages/template-editor.tsx b/apps/client/src/ee/template/pages/template-editor.tsx index 68d692782..2b4069978 100644 --- a/apps/client/src/ee/template/pages/template-editor.tsx +++ b/apps/client/src/ee/template/pages/template-editor.tsx @@ -38,6 +38,10 @@ import { FixedToolbar } from "@/features/editor/components/fixed-toolbar/fixed-t import { EditorLinkMenu } from "@/features/editor/components/link/link-menu"; import { EditorBubbleMenu } from "@/features/editor/components/bubble-menu/bubble-menu"; import { EditorAiMenu } from "@/ee/ai/components/editor/ai-menu/ai-menu"; +import TableMenu from "@/features/editor/components/table/table-menu.tsx"; +import { TableHandlesLayer } from "@/features/editor/components/table/handle/table-handles-layer"; +import CalloutMenu from "@/features/editor/components/callout/callout-menu.tsx"; +import ColumnsMenu from "@/features/editor/components/columns/columns-menu.tsx"; import classes from "./template-editor.module.css"; @@ -85,6 +89,8 @@ export default function TemplateEditor() { extensions: templateExtensions, content: "", editorProps: { + scrollThreshold: 80, + scrollMargin: 80, handleDOMEvents: { keydown: (_view, event) => { if (["ArrowUp", "ArrowDown", "Enter"].includes(event.key)) { @@ -398,9 +404,18 @@ export default function TemplateEditor() { + + + + )} -
+
{ + if (editor && !editor.isDestroyed) editor.commands.focus("end"); + }} + style={{ paddingBottom: "20vh" }} + /> );