From 9e6ca01e7fdc7f5c17e56db400d67640f84f5091 Mon Sep 17 00:00:00 2001 From: Mathias Jakobsen Date: Thu, 10 Jul 2025 09:42:32 +0100 Subject: [PATCH] Merge pull request #27005 from overleaf/mj-editor-redesign-feature-flag [web] Allow editor redesign to be loaded through feature flag GitOrigin-RevId: b600b0d42c7a052fde19be3eee46c9e11cc3bac1 --- .../js/features/ide-redesign/utils/new-editor-utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/web/frontend/js/features/ide-redesign/utils/new-editor-utils.ts b/services/web/frontend/js/features/ide-redesign/utils/new-editor-utils.ts index ecd492cd5f..5b53ae8a6e 100644 --- a/services/web/frontend/js/features/ide-redesign/utils/new-editor-utils.ts +++ b/services/web/frontend/js/features/ide-redesign/utils/new-editor-utils.ts @@ -1,7 +1,9 @@ import { useUserSettingsContext } from '@/shared/context/user-settings-context' import { isInExperiment } from '@/utils/labs-utils' +import { isSplitTestEnabled } from '@/utils/splitTestUtils' -export const canUseNewEditor = () => isInExperiment('editor-redesign') +export const canUseNewEditor = () => + isInExperiment('editor-redesign') || isSplitTestEnabled('editor-redesign') export const useIsNewEditorEnabled = () => { const { userSettings } = useUserSettingsContext()