{#if children} {@render children()} {:else} {#each bubbleMenuCommands as command} {/each} {editor.getAttributes('textStyle').fontSize ?? '16px'} { const color = editor.getAttributes('textStyle').color const hasColor = editor.isActive('textStyle', { color }) if (hasColor) { editor.chain().focus().unsetColor().run() } else { const color = prompt('Enter the color of the text:') if (color !== null) { editor.chain().focus().setColor(color).run() } } }} /> { const hasHightlight = editor.isActive('highlight') if (hasHightlight) { editor.chain().focus().unsetHighlight().run() } else { const color = prompt('Enter the color of the highlight:') if (color !== null) { editor.chain().focus().setHighlight({ color }).run() } } }} /> {/if}