iliyaZelenko / tiptap-vuetify

Vuetify editor. Component simplifies integration tiptap editor with vuetify.
https://iliyazelenko.github.io/tiptap-vuetify-demo/
807 stars 126 forks source link

how to use subscript and superscript? #318

Open lpfy opened 2 years ago

lpfy commented 2 years ago

Just wondering how to use subscript and superscript? seems have to use native-extensions? not sure why the following not working.

<tiptap-vuetify v-model="content" :extensions="extensions" :native-extensions="nativeExtensions" />

import Superscript from "@tiptap/extension-superscript"; import Subscript from "@tiptap/extension-subscript"; import { TiptapVuetify, Bold, Italic, } from "tiptap-vuetify";

export default { components: { TiptapVuetify }, data: () => ({ extensions: [ Bold, Italic ], nativeExtensions: [new Subscript(), new Superscript()], }), };