Merge pull request #11771 from overleaf/msm-force-ace-sp

[web] Force Ace editor in Server Pro

GitOrigin-RevId: 1ea5675ad1c64a15dc30566c02d694feb2aaed3c
This commit is contained in:
Miguel Serrano
2023-02-10 10:08:15 +01:00
committed by Copybot
parent 9cf1373777
commit 286cbc66a8
3 changed files with 25 additions and 17 deletions

View File

@@ -1204,6 +1204,7 @@ const ProjectController = {
const detachRole = req.params.detachRole
const showLegacySourceEditor =
!Features.hasFeature('saas') ||
legacySourceEditorAssignment.variant === 'default' ||
// Also allow override via legacy_source_editor=true in query string
shouldDisplayFeature('legacy_source_editor')