editor.chain().focus().setTextAlign('left').run()} closeOnSelect={false} > Align Left {#if editor.isActive({ textAlign: 'left' })} {/if} editor.chain().focus().setTextAlign('center').run()} closeOnSelect={false} > Align Center {#if editor.isActive({ textAlign: 'center' })} {/if} editor.chain().focus().setTextAlign('right').run()} closeOnSelect={false} > Align Right {#if editor.isActive({ textAlign: 'right' })} {/if} editor.chain().focus().setTextAlign('justify').run()} closeOnSelect={false} > Align Justify {#if editor.isActive({ textAlign: 'justify' })} {/if}

Text Alignment