From 0883b01198b794782bdd432d82855d9fe0f65551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Thu, 27 Jun 2019 20:02:13 +0200 Subject: [PATCH] add topNode option --- packages/tiptap/src/Editor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/tiptap/src/Editor.js b/packages/tiptap/src/Editor.js index a8696ee6e..7f115d831 100644 --- a/packages/tiptap/src/Editor.js +++ b/packages/tiptap/src/Editor.js @@ -33,6 +33,7 @@ export default class Editor extends Emitter { autoFocus: null, extensions: [], content: '', + topNode: 'doc', emptyDocument: { type: 'doc', content: [{ @@ -181,6 +182,7 @@ export default class Editor extends Emitter { createSchema() { return new Schema({ + topNode: this.options.topNode, nodes: this.nodes, marks: this.marks, })