Slate Plugins support multiple editor instances by using the id prop.
Let's render 3 editors with common heading and balloon toolbars.
SyntaxError: Unexpected token (1:8) 1 : return () ^
The toolbar actions require an
editor with a defined
selection, so it needs to be focused.
SlatePlugins stores the id of the last focused editor in eventEditorStore, which can then be used by the toolbar actions (or any component outside SlatePlugins) to get the editor from slatePluginsStore.