move React components to a package, translate default editor example to React

This commit is contained in:
Hans Pagel
2021-02-26 02:00:35 +01:00
parent 38952fb8c9
commit bf5fb2ad3c
12 changed files with 319 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
import React, { useState } from 'react'
import { defaultExtensions } from '@tiptap/starter-kit'
import { useEditor, Editor } from './components/Editor'
import { useEditor, Editor } from '@tiptap/react'
// Menu bar example component
// useEditor only works for child components of <Editor />