Default editor to the advanced editor and don't allow the compact one

I added a new plugin outlet to override the default “compact” form, but i’m not really happy with the change.

The button to access the “advanced” form cannot be overridden with the outlet, and the “editable preview” in the editor is still using the “compact mode”, which may not fit with the overridden form (at least, not in our case).

I’m starting to think that the cleaner solution would be to add an option in the plugin admin, to chose the form behavior. I see at least 2 options:

  • default_editor: chose “compact” (default) or “advanced”
  • allow_editor_switch: will hide the buttons to switch the editor

I’m still digging in the implications, but feedback on the general idea is appreciated :slight_smile:

2 Likes