Export collab plugin key #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "export-plugin-key"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pr exports the collab plugin key from the collab module.
Having direct access to the plugin key is useful in several scenarios:
In my project we fall under the first bullet above. The collab plugin gets initialized after the initial call to
EditorState.createand we are trying to derive another piece of state based on whether it is present or not.You can do
collab().getState(editorState)to do this. I'd prefer not to export internals, when it can be avoided, so I'm not merging this change.Pull request closed