Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

Commit

Permalink
docs: update content, see #103
Browse files Browse the repository at this point in the history
  • Loading branch information
hanspagel committed Jan 28, 2021
1 parent a7b0229 commit b5df7b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/src/docPages/api/editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ 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)`
You can even initiate your editor before mounting it to an element. This is useful when your DOM is not yet available. Just leave out the `element`, we’ll create one for you. Append it to your container at a later date like that:

```js
yourContainerElement.append(editor.options.element)
```

### Extensions
It’s required to pass a list of extensions to the `extensions` property, even if you only want to allow paragraphs.
Expand Down

0 comments on commit b5df7b4

Please sign in to comment.