Start implementing ItemEditor

This commit is contained in:
2025-10-13 13:19:50 +02:00
parent 16cc3ee438
commit d187957915
9 changed files with 337 additions and 22 deletions

View File

@@ -48,7 +48,7 @@ export const a: Prose = {
}
}
export const preview: Prose = {
custom(properties: { href: string, class?: Class, label: string }, children) {
custom(properties: { href: string, class?: Class, label: string, events? }, children) {
const href = properties.href as string;
const { hash, pathname } = parseURL(href);
const router = useRouter();
@@ -72,7 +72,7 @@ export const preview: Prose = {
queueMicrotask(() => canvas.mount());
return dom('div', { class: 'w-[600px] h-[600px] group-data-[pinned]:h-full group-data-[pinned]:w-full h-[600px] relative w-[600px] relative' }, [canvas.container]);
}
return div('');
return div();
})).current], { position: 'bottom-start', pinned: false,
events: {
show: ['mouseenter', 'mousemove'],