mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-06 15:49:01 +02:00
Merge pull request #11583 from overleaf/msm-ace-ce
[web] Force ACE when `modules/source-editor` not available GitOrigin-RevId: 2b43a048e882d99aa52ee8ead6c67152d4080eb2
This commit is contained in:
@@ -23,6 +23,7 @@ meta(name="ol-wsRetryHandshake" data-type="json" content=settings.wsRetryHandsha
|
||||
meta(name="ol-pdfjsVariant" content=pdfjsVariant)
|
||||
meta(name="ol-debugPdfDetach" data-type="boolean" content=debugPdfDetach)
|
||||
meta(name="ol-showLegacySourceEditor", data-type="boolean" content=showLegacySourceEditor)
|
||||
meta(name="ol-hasNewSourceEditor", data-type="boolean" content=moduleIncludesAvailable('editor:source-editor'))
|
||||
meta(name="ol-showSymbolPalette" data-type="boolean" content=showSymbolPalette)
|
||||
meta(name="ol-galileoEnabled" data-type="string" content=galileoEnabled)
|
||||
meta(name="ol-galileoPromptWords" data-type="string" content=galileoPromptWords)
|
||||
|
||||
@@ -195,6 +195,11 @@ export default EditorManager = (function () {
|
||||
}
|
||||
|
||||
newSourceEditor() {
|
||||
// the new source editor is not available at the moment in CE
|
||||
if (!getMeta('ol-hasNewSourceEditor')) {
|
||||
return false
|
||||
}
|
||||
|
||||
// Use the new source editor if the legacy editor is disabled
|
||||
if (!getMeta('ol-showLegacySourceEditor')) {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user