Merge branch 'main' of github.com:ueberdosis/tiptap-next into main
This commit is contained in:
@@ -99,9 +99,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Editor, EditorContent, defaultExtensions } from '@tiptap/vue-starter-kit'
|
import { Editor, EditorContent, defaultExtensions } from '@tiptap/vue-starter-kit'
|
||||||
import Document from '@tiptap/extension-document'
|
|
||||||
import Paragraph from '@tiptap/extension-paragraph'
|
|
||||||
import Text from '@tiptap/extension-text'
|
|
||||||
import Collaboration from '@tiptap/extension-collaboration'
|
import Collaboration from '@tiptap/extension-collaboration'
|
||||||
import CollaborationCursor from '@tiptap/extension-collaboration-cursor'
|
import CollaborationCursor from '@tiptap/extension-collaboration-cursor'
|
||||||
import * as Y from 'yjs'
|
import * as Y from 'yjs'
|
||||||
|
|||||||
@@ -30,6 +30,9 @@
|
|||||||
>
|
>
|
||||||
cursive
|
cursive
|
||||||
</button>
|
</button>
|
||||||
|
<button @click="editor.chain().focus().fontFamily().run()">
|
||||||
|
Remove font-family
|
||||||
|
</button>
|
||||||
|
|
||||||
<editor-content :editor="editor" />
|
<editor-content :editor="editor" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Text Style
|
# TextStyle
|
||||||
This mark renders a `<span>` HTML tag and enables you to add a list of styling related attributes, for example font-family, font-size, or font-color. The extension doesn’t add any styling attribute by default, but other extensions use it as the foundation, for example [`FontFamily`](/api/extensions/font-family).
|
This mark renders a `<span>` HTML tag and enables you to add a list of styling related attributes, for example font-family, font-size, or font-color. The extension doesn’t add any styling attribute by default, but other extensions use it as the foundation, for example [`FontFamily`](/api/extensions/font-family).
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|||||||
@@ -112,7 +112,7 @@
|
|||||||
link: /api/marks/link
|
link: /api/marks/link
|
||||||
- title: Strike
|
- title: Strike
|
||||||
link: /api/marks/strike
|
link: /api/marks/strike
|
||||||
- title: Text Style
|
- title: TextStyle
|
||||||
link: /api/marks/text-style
|
link: /api/marks/text-style
|
||||||
draft: true
|
draft: true
|
||||||
- title: Underline
|
- title: Underline
|
||||||
|
|||||||
Reference in New Issue
Block a user