add a generateJSON utility to the HTML package
This commit is contained in:
@@ -3,7 +3,10 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { generateJSON } from '@tiptap/core'
|
||||
// Option 1: Browser + server-side
|
||||
import { generateJSON } from '@tiptap/html'
|
||||
// Option 2: Browser-only (lightweight)
|
||||
// import { generateJSON } from '@tiptap/core'
|
||||
import Document from '@tiptap/extension-document'
|
||||
import Paragraph from '@tiptap/extension-paragraph'
|
||||
import Text from '@tiptap/extension-text'
|
||||
|
||||
Reference in New Issue
Block a user