mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-28 15:49:23 +08:00
formatting
This commit is contained in:
parent
3f384b1b88
commit
3c49928347
@ -1,33 +1,18 @@
|
||||
<template>
|
||||
<div v-if="editor">
|
||||
<button
|
||||
@click="editor.chain().focus().fontFamily('Inter').run()"
|
||||
:class="{ 'is-active': editor.isActive('textStyle', { fontFamily: 'Inter' }) }"
|
||||
>
|
||||
<button @click="editor.chain().focus().fontFamily('Inter').run()" :class="{ 'is-active': editor.isActive('textStyle', { fontFamily: 'Inter' }) }">
|
||||
Inter
|
||||
</button>
|
||||
<button
|
||||
@click="editor.chain().focus().fontFamily('Comic Sans MS, Comic Sans').run()"
|
||||
:class="{ 'is-active': editor.isActive('textStyle', { fontFamily: 'Comic Sans MS, Comic Sans' }) }"
|
||||
>
|
||||
<button @click="editor.chain().focus().fontFamily('Comic Sans MS, Comic Sans').run()" :class="{ 'is-active': editor.isActive('textStyle', { fontFamily: 'Comic Sans MS, Comic Sans' }) }">
|
||||
Comic Sans
|
||||
</button>
|
||||
<button
|
||||
@click="editor.chain().focus().fontFamily('serif').run()"
|
||||
:class="{ 'is-active': editor.isActive('textStyle', { fontFamily: 'serif' }) }"
|
||||
>
|
||||
<button @click="editor.chain().focus().fontFamily('serif').run()" :class="{ 'is-active': editor.isActive('textStyle', { fontFamily: 'serif' }) }">
|
||||
serif
|
||||
</button>
|
||||
<button
|
||||
@click="editor.chain().focus().fontFamily('monospace').run()"
|
||||
:class="{ 'is-active': editor.isActive('textStyle', { fontFamily: 'monospace' }) }"
|
||||
>
|
||||
<button @click="editor.chain().focus().fontFamily('monospace').run()" :class="{ 'is-active': editor.isActive('textStyle', { fontFamily: 'monospace' }) }">
|
||||
monospace
|
||||
</button>
|
||||
<button
|
||||
@click="editor.chain().focus().fontFamily('cursive').run()"
|
||||
:class="{ 'is-active': editor.isActive('textStyle', { fontFamily: 'cursive' }) }"
|
||||
>
|
||||
<button @click="editor.chain().focus().fontFamily('cursive').run()" :class="{ 'is-active': editor.isActive('textStyle', { fontFamily: 'cursive' }) }">
|
||||
cursive
|
||||
</button>
|
||||
<button @click="editor.chain().focus().fontFamily().run()">
|
||||
|
Loading…
Reference in New Issue
Block a user