ContentEditor.svelte

Declarations
#

view source

ContentEditor
#

ContentEditor.svelte view source

Focus the textarea element - exposed for parent components.

content

type string
bindable

token_count?

Estimated if not provided and show_stats is true.

type number | undefined
optional

placeholder?

type string | null | undefined
optional

readonly?

type boolean | undefined
optional

show_stats?

type boolean | undefined
optional

show_actions?

type boolean | undefined
optional

textarea_height?

type string | undefined
optional

focus_key?

type string | number | null | undefined
optional

pending_element_to_focus_key?

type string | number | null | undefined
optional bindable

attrs?

type SvelteHTMLElements['textarea'] | undefined
optional

after?

type Snippet | undefined
optional

children?

type Snippet | undefined
optional

onsave?

type ((value: string) => void) | undefined
optional

Depends on
#

Imported by
#