Remove svelte from editor

This commit is contained in:
Jon Staab
2025-02-04 20:06:50 -08:00
parent 63cfebe673
commit 0964fe762e
33 changed files with 534 additions and 2655 deletions
@@ -0,0 +1,19 @@
import type {NodeViewProps} from "@tiptap/core"
import {fromNostrURI} from "@welshman/util"
export const EventNodeView = ({node}: NodeViewProps) => {
const dom = document.createElement("span")
dom.classList.add("tiptap-object")
dom.innerText = `${fromNostrURI(node.attrs.bech32).slice(0, 16)}...`
return {
dom,
selectNode() {
dom.classList.add("tiptap-active")
},
deselectNode() {
dom.classList.remove("tiptap-active")
},
}
}