feat(writekit): rename @robonen/editor to @robonen/writekit

Rename the rich-text editor package and all Editor* exports to Writekit*;
remove the old vue/editor tree.
This commit is contained in:
2026-06-15 16:54:06 +07:00
parent 55e78786d6
commit 263c32002f
149 changed files with 1563 additions and 1748 deletions
+16
View File
@@ -0,0 +1,16 @@
import type { Node } from '../model';
import { defineBlock } from '../registry';
export const codeBlock = defineBlock({
type: 'code-block',
spec: {
content: { kind: 'text', marks: 'none' }, // raw text, no inline formatting
group: 'block',
code: true, // Enter inserts a newline instead of splitting
defining: true,
attrs: { language: { default: 'plain' } },
toDOM: (node: Node) => ['pre', { 'data-language': String(node.attrs['language'] ?? 'plain') }, 0],
parseDOM: [{ tag: 'pre' }],
},
meta: { title: 'Code block', icon: 'code', keywords: ['code', 'pre', 'snippet'], group: 'basic' },
});