do not render node views twice
This commit is contained in:
@@ -153,13 +153,6 @@ export default class Editor {
|
|||||||
const view = new EditorView(this.element, {
|
const view = new EditorView(this.element, {
|
||||||
state: this.state,
|
state: this.state,
|
||||||
dispatchTransaction: this.dispatchTransaction.bind(this),
|
dispatchTransaction: this.dispatchTransaction.bind(this),
|
||||||
nodeViews: this.initNodeViews({
|
|
||||||
extensions: [
|
|
||||||
...builtInNodes,
|
|
||||||
...this.options.extensions,
|
|
||||||
],
|
|
||||||
editable: this.options.editable,
|
|
||||||
}),
|
|
||||||
})
|
})
|
||||||
|
|
||||||
view.dom.style.whiteSpace = 'pre-wrap'
|
view.dom.style.whiteSpace = 'pre-wrap'
|
||||||
|
|||||||
Reference in New Issue
Block a user