{#if showHeader && $$slots.header}
{/if}
{
if (canSubmit) {
dispatch('message', ev.detail)
content = EmptyMarkup
textEditor?.clear()
}
}}
on:blur={() => {
focused = false
dispatch('blur')
}}
on:focus={() => {
focused = true
updateFocus()
dispatch('focus')
}}
extensions={[
completionPlugin,
EmojiExtension.configure(),
IsEmptyContentExtension.configure({ onChange: (value) => (isEmpty = value) })
]}
on:update
placeholder={placeholder ?? textEditorPlugin.string.EditorPlaceholder}
textFormatCategories={[
TextFormatCategory.TextDecoration,
TextFormatCategory.Link,
TextFormatCategory.List,
TextFormatCategory.Quote,
TextFormatCategory.Code
]}
/>
{#if showActions || showSend}
{/if}