【发布时间】:2021-01-14 00:26:00
【问题描述】:
我尝试使用 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
有人可以帮我吗?我已阅读 Wiris 网站 (https://docs.wiris.com/en/mathtype/mathtype_web/integrations/mathml-mode) 上的文档,但无法确定为什么这不起作用。
【问题讨论】:
标签: reactjs ckeditor mathml wiris