This commit is contained in:
Philipp Kühn 2020-11-10 09:21:57 +01:00
parent 7d121eb39a
commit efbe21d19a

View File

@ -23,7 +23,7 @@ import { Editor } from '@tiptap/core'
import { defaultExtensions } from '@tiptap/starter-kit' import { defaultExtensions } from '@tiptap/starter-kit'
new Editor({ new Editor({
element: document.getElementsByClassName('element'), element: document.querySelector('.element'),
extensions: defaultExtensions(), extensions: defaultExtensions(),
content: '<p>Your content.</p>', content: '<p>Your content.</p>',
}) })