Merge pull request #9415 from overleaf/msm-ce-sp-hotfix-3_2_1

[CE/SP] Hotfix 3.2.1

GitOrigin-RevId: d1c89f40b00e0d648e7f8d76083605cb29aca59e
This commit is contained in:
Miguel Serrano 2022-08-26 12:25:31 +02:00 committed by Copybot
parent 7288ef0370
commit b449107411
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,6 @@
FROM sharelatex/sharelatex:3.2.0
# Patch: fixes source editor broken
# https://github.com/overleaf/overleaf/issues/1043
COPY disable-codemirror.patch .
RUN patch -p0 < disable-codemirror.patch

View file

@ -0,0 +1,15 @@
--- services/web/app/src/Features/Project/ProjectController.js
--- services/web/app/src/Features/Project/ProjectController.js
@@ -1134,11 +1134,7 @@ const ProjectController = {
detachRole = req.params.detachRole
}
- const showNewSourceEditorOption =
- (newSourceEditorAssignment &&
- newSourceEditorAssignment.variant === 'codemirror') ||
- user.betaProgram ||
- shouldDisplayFeature('new_source_editor', false) // also allow override via ?new_source_editor=true
+ const showNewSourceEditorOption = false // disabled in CE/SP (Hotfix 3.2.1)
const showSymbolPalette =
!Features.hasFeature('saas') ||