From ed19b2521f0dcc6e89bf7583db2ef2e80586a470 Mon Sep 17 00:00:00 2001 From: Miguel Serrano Date: Wed, 17 May 2023 13:56:05 +0200 Subject: [PATCH] Merge pull request #13123 from overleaf/msm-enforce-cm6-sp [web] Set richTextVariant=cm6 for CE/SP GitOrigin-RevId: a3f0e1ea67ee1f707f6bf3b0178a88e88d89f75d --- .../web/app/src/Features/Project/ProjectController.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/services/web/app/src/Features/Project/ProjectController.js b/services/web/app/src/Features/Project/ProjectController.js index 8cd3eafdd4..6f05618f5a 100644 --- a/services/web/app/src/Features/Project/ProjectController.js +++ b/services/web/app/src/Features/Project/ProjectController.js @@ -1342,6 +1342,13 @@ const ProjectController = { Features.hasFeature('saas') && participatingInVisualEditorNamingTest + let richTextVariant + if (!Features.hasFeature('saas')) { + richTextVariant = 'cm6' + } else { + richTextVariant = richTextAssignment.variant + } + res.render(template, { title: project.name, priority_title: true, @@ -1418,7 +1425,7 @@ const ProjectController = { fixedSizeDocument: true, useOpenTelemetry: Settings.useOpenTelemetryClient, showCM6SwitchAwaySurvey: Settings.showCM6SwitchAwaySurvey, - richTextVariant: richTextAssignment.variant, + richTextVariant, showOnboardingVideoTour, historyViewReact: historyViewAssignment.variant === 'react', showPersonalAccessToken,