mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 12:24:25 +02:00
Fix CodeMirror 6 stories (#5834)
GitOrigin-RevId: 76f17bc02844dde61545b15e6a2e4f7c1bbcfdc7
This commit is contained in:
@@ -14,6 +14,7 @@ export function setupContext() {
|
||||
project: {},
|
||||
$watch: () => {},
|
||||
$applyAsync: () => {},
|
||||
$broadcast: () => {},
|
||||
ui: {
|
||||
chatOpen: true,
|
||||
pdfLayout: 'flat',
|
||||
@@ -22,6 +23,7 @@ export function setupContext() {
|
||||
pdfViewer: 'js',
|
||||
},
|
||||
toggleHistory: () => {},
|
||||
rootFolder: { type: 'folder', children: [] },
|
||||
}
|
||||
}
|
||||
window._ide = {
|
||||
@@ -43,6 +45,13 @@ export function setupContext() {
|
||||
console.log('open doc', id, options)
|
||||
},
|
||||
},
|
||||
metadataManager: {
|
||||
metadata: {
|
||||
state: {
|
||||
documents: {},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
window.ExposedSettings = window.ExposedSettings || {}
|
||||
window.ExposedSettings.appName = 'Overleaf'
|
||||
|
||||
Reference in New Issue
Block a user