You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
Describe the bug
After changing the folder name of a custom block plugin, the editor field won´t show up in the panel anymore. The panel error is 'The field type "[name of the corresponding editor field]" does not exist'
To Reproduce
Steps to reproduce the behavior:
Copy one of the provided example blocks, i.e. 'info-block' into /site/plugins/
Change the name of the block inside index.php, index.js (change to download-block for example)
I've had the same problem with a custom block for alerts. Within the plugins folder, my block's folder was alert-block. It seems like plugins are loaded in alphabetical order.
In your case download-block gets loaded before editor since the letter d comes before e, but the block depends on the editor plugin, so it breaks the panel. My workaround was to rename the block folder to anything starting with a letter after e. In my case I renamed alert-block to z-alert-block and everything worked correctly.
I'm not 100% sure this is the case, but this was my experience with the problem.
That´s it. Thanks a lot @PaulMorel! I now renamed my plugins into editor-[feature]-block, so that they are loaded after the main editor-plugin. This should definitely be mentioned in the Block extensions page inside the wiki @bastianallgeier.
I can confirm this issue and its workaround. The moment the folder of an editor plugin comes beforee in the alphabet, editor is not available for the custom js. Seems like plugin folders are loaded in alphabetical order which can mess up dependencies. :/
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
After changing the folder name of a custom block plugin, the editor field won´t show up in the panel anymore. The panel error is 'The field type "[name of the corresponding editor field]" does not exist'
To Reproduce
Steps to reproduce the behavior:
The plugin should run as expected.
Kirby Version
3.4.3
Console output
Uncaught ReferenceError: editor is not defined
at index.js?1600444109:3
Desktop (please complete the following information):
Tried on different server environments, too.
The text was updated successfully, but these errors were encountered: