fix: remove editable check in updateAttributes, fix #1415
This commit is contained in:
@@ -224,10 +224,6 @@ export class NodeView<Component, Editor extends CoreEditor = CoreEditor> impleme
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateAttributes(attributes: {}) {
|
updateAttributes(attributes: {}) {
|
||||||
if (!this.editor.view.editable) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
const { state } = this.editor.view
|
const { state } = this.editor.view
|
||||||
const pos = this.getPos()
|
const pos = this.getPos()
|
||||||
const transaction = state.tr.setNodeMarkup(pos, undefined, {
|
const transaction = state.tr.setNodeMarkup(pos, undefined, {
|
||||||
|
|||||||
Reference in New Issue
Block a user