do not render node views twice

This commit is contained in:
Philipp Kühn
2018-11-16 14:17:56 +01:00
parent abfc9d5331
commit d16174c060

View File

@@ -153,13 +153,6 @@ export default class Editor {
const view = new EditorView(this.element, {
state: this.state,
dispatchTransaction: this.dispatchTransaction.bind(this),
nodeViews: this.initNodeViews({
extensions: [
...builtInNodes,
...this.options.extensions,
],
editable: this.options.editable,
}),
})
view.dom.style.whiteSpace = 'pre-wrap'