docs: document empty elements, see #103

This commit is contained in:
Hans Pagel
2021-01-27 09:41:13 +01:00
parent 6a21048cca
commit 071322bfb7

View File

@@ -21,6 +21,8 @@ new Editor({
})
```
If you dont pass an element, tiptap will create an invisible `<div>`. You can use that to mount your editor after its already initiated: `yourElement.append(editor.options.element)`
### Extensions
Its required to pass a list of extensions to the `extensions` property, even if you only want to allow paragraphs.