Bring back actions for spreadsheets and presentations

This commit is contained in:
Lukas Hirt
2020-11-20 12:39:40 +01:00
parent 68b74d11da
commit b634b69d10
+19 -1
View File
@@ -13,9 +13,27 @@ const appInfo = {
},
newFileMenu: {
menuTitle($gettext) {
return $gettext('New Onlyoffice document')
return $gettext('New OnlyOFFICE document')
}
}
},
{
extension: 'xlsx',
handler: function(config, filePath, fileId) {
window.open(
`${config.server}/apps/onlyoffice/${fileId}?filePath=${encodeURIComponent(filePath)}`,
'_blank'
)
}
},
{
extension: 'pptx',
handler: function(config, filePath, fileId) {
window.open(
`${config.server}/apps/onlyoffice/${fileId}?filePath=${encodeURIComponent(filePath)}`,
'_blank'
)
}
}
]
}