documentserver: docker 8.2.1.38
{
"name": "发票管理",
"guid": "asc.{019269E7-347D-7E4A-B7AE-15D6ED4A2280}",
"variations": [
{
"description": "发票管理",
"url": "index.html",
"icons": [
"resources/light/icon.png",
"resources/light/icon@2x.png"
],
"EditorsSupport": [
"cell"
],
"type": "system",
"isViewer": true,
"isVisual": true,
"isModal": false,
"isInsideMode": false,
"initDataType": "none",
"initData": "",
"isDisplayedInViewer": true,
"events": [
"onContextMenuShow",
"onContextMenuClick",
"onToolbarMenuClick"
]
}
]
}
code.js
function createNewWindow(name, title = '', size = [700, 400]) {
if (newWindow) {
Asc.plugin.executeMethod("CloseWindow", [newWindow.id])
}
newWindow = new window.Asc.PluginWindow()
const variation = {
url: getFullUrl(name),
isVisual: true,
isModal: false,
isViewer: false,
EditorsSupport: ["cell"],
size: size,
buttons: [],
description: title,
isDisplayedInViewer: true,
type:'window'
}
newWindow.show(variation)
}
the new window working fine when editorConfig.mode = ‘edit’.
not showing the new window on editorConfig.mode = ‘view’.
the plugin zip is plugins.zip