Merge pull request #13123 from overleaf/msm-enforce-cm6-sp

[web] Set richTextVariant=cm6 for CE/SP

GitOrigin-RevId: a3f0e1ea67ee1f707f6bf3b0178a88e88d89f75d
This commit is contained in:
Miguel Serrano 2023-05-17 13:56:05 +02:00 committed by Copybot
parent a5834a0f8c
commit ed19b2521f

View file

@ -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,