Add heading placeholders for h1-h6 in BlockPlaceholderPlugin

- Add placeholder text 'Heading 1' through 'Heading 6' for empty heading components
- Uses existing KEYS constants and placeholder system
- Addresses BUS-1700 ticket requirements

Co-Authored-By: nate@buster.so <nate@buster.so>
This commit is contained in:
Devin AI 2025-09-10 03:51:09 +00:00
parent c77f0e02ea
commit 4933c0aed6
1 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,12 @@ export const BlockPlaceholderKit = [
'before:absolute before:cursor-text before:text-muted-foreground/80 before:content-[attr(placeholder)]',
placeholders: {
[KEYS.p]: 'Write or type "/" for commands...',
[KEYS.h1]: 'Heading 1',
[KEYS.h2]: 'Heading 2',
[KEYS.h3]: 'Heading 3',
[KEYS.h4]: 'Heading 4',
[KEYS.h5]: 'Heading 5',
[KEYS.h6]: 'Heading 6',
},
query: ({ path }) => {
return path.length === 1;