docs: document empty elements, see #103
This commit is contained in:
@@ -21,6 +21,8 @@ new Editor({
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you don’t pass an element, tiptap will create an invisible `<div>`. You can use that to mount your editor after it’s already initiated: `yourElement.append(editor.options.element)`
|
||||||
|
|
||||||
### Extensions
|
### Extensions
|
||||||
It’s required to pass a list of extensions to the `extensions` property, even if you only want to allow paragraphs.
|
It’s required to pass a list of extensions to the `extensions` property, even if you only want to allow paragraphs.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user