ShowWindow not working on view model

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

Hello @langziyang
Please clarify how can I check the plugin is working properly. I see the sdk folder in the zip archive. Should I specify these files in the plugin config files? If you can record a video file with clarification, it would be appreciated.

@Alexandre

hi,the sdk just javascript file,like
and we still not finish the plugin,so if you can use it like:

https://www.sczqcgw.com/plugins/invoice/config.json

<script type="text/javascript" src="../sdk/jquery.min.js"></script>
<script type="text/javascript" src="../sdk/layui/layui.js"></script>
<script type="text/javascript" src="../sdk/plugins.js"></script>
<script type="text/javascript" src="../sdk/plugins-ui.js"></script>
 <link rel="stylesheet" href="../sdk/plugins.css">

the invoice is plugin,