The editor will only call editable when it updates. So you can change window.editable all you want, it just won’t notice. A better approach would be to define a plugin with a state field that tracks whether the editor is editable, have the editable prop return the value of that field, and use transactions (with an annotation) to update the state field (properly, via its apply reducer, not by mutating something).