From 071322bfb7b0454f9b5b652750531f826207982f Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Wed, 27 Jan 2021 09:41:13 +0100 Subject: [PATCH] docs: document empty elements, see #103 --- docs/src/docPages/api/editor.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/src/docPages/api/editor.md b/docs/src/docPages/api/editor.md index 5f3c08ef..0e9d091f 100644 --- a/docs/src/docPages/api/editor.md +++ b/docs/src/docPages/api/editor.md @@ -21,6 +21,8 @@ new Editor({ }) ``` +If you don’t pass an element, tiptap will create an invisible `
`. You can use that to mount your editor after it’s already initiated: `yourElement.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.