mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-17 00:52:45 +00:00
[web] [cm6] Trigger metadata reload if edited text contains metadata-related command (#6371)
GitOrigin-RevId: 4180ef0b7720b38ca1511c4f96de14e03b0a3ea5
This commit is contained in:
parent
371270c622
commit
ae7c7edc69
1 changed files with 4 additions and 0 deletions
|
@ -120,5 +120,9 @@ export default App.factory('metadata', function ($http, ide) {
|
||||||
}, 1000))
|
}, 1000))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window.addEventListener('editor:metadata-outdated', () => {
|
||||||
|
metadata.scheduleLoadDocMetaFromServer(ide.$scope.editor.sharejs_doc.doc_id)
|
||||||
|
})
|
||||||
|
|
||||||
return metadata
|
return metadata
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue