Just wondered what people’s approaches were to composing multiple plugins into one plugin. Some of the less simple plugins I’ve worked on seem to use pieces of logic that could usefully be split out into their own plugin (I’ve ended up doing this with one part of a plugin). Currently when calling the plugin factory function you need to spread the return value (an array of two plugins) into the plugins array of the
EditorState to make sure both of the separate plugins are added in:
plugins: [ // ... ...myPlugin(args) ]
For now this seems fine although I’m sure it would cause a few “why isn’t this plugin” working as people may not properly read the docs. I just wondered whether people had any other examples of this or whether this seems like a bit of a non-issue?