blog post editor

This commit is contained in:
2026-05-10 19:09:26 +10:00
parent 40fd8e8e42
commit 0f59de54bb
26 changed files with 6049 additions and 625 deletions

View File

@@ -202,6 +202,13 @@ export class ItemDragger {
if (!this.#enabled) return;
const target = /** @type {HTMLElement} */ (e.target);
if (target.closest(".pin-handle")) return;
// Allow text selection in blog/info node bodies
const nodeBody = target.closest(".node-body");
if (nodeBody && (node.type === 'info' || node.type === 'blog_post')) {
return; // Don't drag, allow text selection
}
e.stopPropagation();
const pointerWorld = this.#clientToWorkspace(e.clientX, e.clientY);