Make Editor::frontend generic