From 8b94b43919f332d8d3f01cfe8ee47a0cd5548163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Wed, 31 Jul 2019 11:09:18 +0200 Subject: [PATCH] fix default selection --- packages/tiptap/src/Editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tiptap/src/Editor.js b/packages/tiptap/src/Editor.js index 970d383ae..dfcf28f25 100644 --- a/packages/tiptap/src/Editor.js +++ b/packages/tiptap/src/Editor.js @@ -74,7 +74,7 @@ export default class Editor extends Emitter { ...options, }) this.focused = false - this.selection = null + this.selection = { from: 0, to: 0 } this.element = document.createElement('div') this.extensions = this.createExtensions() this.nodes = this.createNodes()