-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use custom editor if plugin provides one #247
Conversation
Deployed in glich along with an early draft of slackmatic plugin for experimentation. |
Plugin authors who offer custom editors with their plugins should add "customEditor": true to their factory.json Without the pre-loading, the first time an author would choose a plugin with a custom editor, there was a visible delay in the interface while the plugin was loaded from the server.
The updated PR and plugin are now published at glitch to see plugin get pre-loaded |
I may have pontificated in the wrong field to make my thoughts part of our historical record. The curious can consult #247 (comment). |
Let's pull that comment into this thread....
Maybe "custom" is not redundant, it indicates that this parameter is about a custom editor, rather than the standard built-in one. All the core client needs to know is if the plugin supplies a custom editor, so "true" (or "false") is sufficient. As long as there is a standard entry point for the custom editor, that should be quite enough in the core (together with some error handling in case the plugin doesn't really have a custom editor). |
I considered naming this configuration |
You are convincing. I'm in favor with no complaints. |
With this latest commit, I have simplified the config in factory.json as we discussed here. I've also worked a little harder than usual to provide an informative error message for future plugin authors (like my future self) that might configure the factory but mess up the plugin itself |
Published as + wiki-client@0.18.1 |
No description provided.