problem
When enabling editor only usage and not changing the ACLs to disable the headpanel, this is leading to JS errors.
solution
- Ensure that head panel is only accessed if available
- HeadPanel Controller is not loaded if editorViewPort = Editor.view.ViewPortSingle