feat(ee): templates (#2215)

* feat(ee): templates
* fix tree
* fix
This commit is contained in:
Philip Okugbe
2026-05-19 02:41:52 +01:00
committed by GitHub
parent 0d6538ab1a
commit 6cf8101ab3
25 changed files with 752 additions and 76 deletions
@@ -75,6 +75,18 @@ export default function TemplateEditor() {
const editor = useEditor({
extensions: templateExtensions,
content: "",
editorProps: {
handleDOMEvents: {
keydown: (_view, event) => {
if (["ArrowUp", "ArrowDown", "Enter"].includes(event.key)) {
const slashCommand = document.querySelector("#slash-command");
if (slashCommand) {
return true;
}
}
},
},
},
onUpdate() {
if (loadedRef.current) {
markDirty();