我如何将通用 wiris 编辑器链接到外部服务器以生成图像

问题描述

我在 HTML 页面中有一个通用的 wiris 编辑器,代码如下

  <html>
    <head>
      <script src="node_modules/@wiris/mathtype-generic/wirisplugin-generic.js"></script>
    </head>
    <body>
      <div id="toolbar"></div>
      <div id="htmlEditor" contenteditable="true">Try me!</div>

      <script>
        var genericIntegrationProperties = {};
        genericIntegrationProperties.target = document.getElementById('htmlEditor');
        genericIntegrationProperties.toolbar = document.getElementById('toolbar');

        // GenericIntegration instance.
        var genericIntegrationInstance = new WirisPlugin.GenericIntegration(genericIntegrationProperties);
        genericIntegrationInstance.init();
        genericIntegrationInstance.listeners.fire('onTargetReady',{});
      </script>
    </body>
  </html>

所以这里使用 wiris 远程服务器来生成图像并进行一些计算, 我想在 tomcat 上有一个独立的服务器,我想知道如何集成它们, 参考了这些文档,但我发现很难理解如何使用 wiris-generic war 文件的集成过程。 https://docs.wiris.com/en/mathtype/mathtype_web/integrations/config-table

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)