[web] [cm6] Trigger metadata reload if edited text contains metadata-related command (#6371)

GitOrigin-RevId: 4180ef0b7720b38ca1511c4f96de14e03b0a3ea5
This commit is contained in:
Alf Eaton 2022-02-04 09:22:50 +00:00 committed by Copybot
parent 371270c622
commit ae7c7edc69

View file

@ -120,5 +120,9 @@ export default App.factory('metadata', function ($http, ide) {
}, 1000))
}
window.addEventListener('editor:metadata-outdated', () => {
metadata.scheduleLoadDocMetaFromServer(ide.$scope.editor.sharejs_doc.doc_id)
})
return metadata
})