在ReactJS中使用WIRISplugin从CKeditor5显示数学方程式

问题描述

我已尝试使用reactjs将<script src="https://www.wiris.net/demo/plugins/app/WIRISplugins.js?viewer=image"></script>放入index.html的<head>中,但是由于某种原因,这对我不起作用。

client / public / index.html

<!DOCTYPE html>
<html lang="pt-br">
  <head>
    <Meta charset="utf-8">
    <Meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
    <title>Portal</title>

    <!-- WIRISplugin -->
    <script src="https://www.wiris.net/demo/plugins/app/WIRISplugins.js?viewer=image"></script> 

  </head>
  <body>
    <div id="root"></div>
  </body>
</html>

当我运行该应用程序时,数学方程式仍然不显示,并且在控制台上收到404错误,因为该脚本无法访问Wiris URL并获取插件

当前结果:

a3xy =∞∅π 21.4摩尔⇄a∆N

Expected results:

有人可以帮我吗?我已经阅读了Wiris网站(https://docs.wiris.com/en/mathtype/mathtype_web/integrations/mathml-mode)上的文档,但无法确定为什么这样做不起作用。

解决方法

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

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

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