e.stopPropagation()}
onkeydown={(e) => { e.stopPropagation(); handleKeydown(e); }}
data-testid="note-editor"
>
{#if checklistMode}
(content = c)} />
{:else if rawMarkdownMode}
{:else}
(content = md)}
onEditor={(e) => (tiptapEditor = e)}
onTransaction={() => editorTick++}
placeholder="Add a crumb..."
/>
{/if}
{#if !rawMarkdownMode && !checklistMode}
{/if}
{#if showColorPicker}
{/if}