fix: remove editable check in updateAttributes, fix #1415

This commit is contained in:
Philipp Kühn 2021-06-14 15:34:09 +02:00
parent dee90ff3cd
commit fbc8fffb70

View File

@ -224,10 +224,6 @@ export class NodeView<Component, Editor extends CoreEditor = CoreEditor> impleme
}
updateAttributes(attributes: {}) {
if (!this.editor.view.editable) {
return
}
const { state } = this.editor.view
const pos = this.getPos()
const transaction = state.tr.setNodeMarkup(pos, undefined, {