{#if mode === 'extended' || expanded}
{#if !rawMode}
editor?.chain().focus().toggleBold().run()} title="Bold (Ctrl+B)">B
editor?.chain().focus().toggleItalic().run()} title="Italic (Ctrl+I)">
I
editor?.chain().focus().toggleStrike().run()} title="Strikethrough">S̶
editor?.chain().focus().toggleCode().run()} title="Inline code">{'<>'}
editor?.chain().focus().toggleHeading({ level: 1 }).run()} title="Heading 1">H1
editor?.chain().focus().toggleHeading({ level: 2 }).run()} title="Heading 2">H2
editor?.chain().focus().toggleHeading({ level: 3 }).run()} title="Heading 3">H3
editor?.chain().focus().toggleBulletList().run()} title="Bullet list">•
editor?.chain().focus().toggleOrderedList().run()} title="Numbered list">1.
editor?.chain().focus().toggleBlockquote().run()} title="Quote">❝
editor?.chain().focus().toggleCodeBlock().run()} title="Code block">{'{ }'}
{/if}
{'>'}
{/if}
{#if rawMode}
{:else}
{/if} {#if mode === 'compact' && !expanded}
{/if}
{#if mode === 'compact' && expanded}
{/if} {#if suggestions.length > 0 && mentionPopupPos}
{#each suggestions as entity, i (entity.id)}
{ e.preventDefault(); mentionCommandFn?.(entity); }} >
{entity.name}
{#if entity.aliases?.length > 0}
{entity.aliases[0]}
{/if}
{entity.type}
{/each}
{/if}