{ switchTo(value as RichTextTypes); }} type="single" items={[ { value: 'paragraph', label: 'Text' }, { value: 'heading-1', label: 'Heading 1' }, { value: 'heading-2', label: 'Heading 2' }, { value: 'heading-3', label: 'Heading 3' }, { value: 'blockquote', label: 'Blockquote' }, { value: 'code', label: 'Code Block' }, { value: 'bullet-list', label: 'Bullet List' }, { value: 'ordered-list', label: 'Ordered List' } ]} bind:value={selectedType} />
editor?.chain().focus().toggleBold().run()} bind:pressed={() => isBold, (bold) => {}} >
Bold
editor?.chain().focus().toggleItalic().run()} bind:pressed={() => isItalic, (italic) => {}} >
Italic
editor?.chain().focus().toggleUnderline().run()} bind:pressed={() => isUnderline, (underline) => {}} >
Underline
editor?.chain().focus().toggleStrike().run()} bind:pressed={() => isStrikethrough, (strikethrough) => {}} >
Strikethrough
{ clickedLink(); }} bind:pressed={() => isLink, (link) => {}} >
Link