Is there a way to pass editor inside apply function of plugin?
return new Plugin({
key: new PluginKey('myPLugin'),
state: {
init: () => DecorationSet.empty,
apply(t, set, oldState, newState) {
I want to have a editor.isEditable here for conditional applying of decorators
}