0

我在应用程序版本中使用 tinyMCE 5.1.3 (Angular6) (none cloud version),比如将 tinymce 文件、主题放在 angular 脚手架的资产文件夹下。

在我的 angular.json 中,我有以下配置:

"assets" :[
    {
    "glob": "/*",
    "input": "node_modules/tinymce/skins",
    "output": "/skins/"
    },
    {
    "glob": "/",
    "input": "node_modules/tinymce/themes",
    "output": "/themes/"
    },
    {
    "glob": "**/",
    "input": "node_modules/tinymce/plugins",
    "output": "/plugins/"
    }
    ]
    "scripts": [ "node_modules/tinymce/tinymce.min.js" ]
package.json
"tinymce": "^5.1.3",

我有类似的配置(至少 100%)如下 plnkr(组件和 html 明智)

http://plnkr.co/edit/E5Yzk9KT9nSWlPU6i1ZK?p=preview&preview

一切都在 chrome 最新版本中运行,但是富文本编辑器IE11. 我可以在 IE 上看到的一件事是它说theme.js找不到( 404 ) error,我不确定这是否真的在编辑器后面不可见IE11

我还可以看到,IE 中 theme.js 的 url 与 chrome 的 URL 不同。在 Chrome 中它指向服务器的 dist 文件夹,但在 IE 中它只是指向项目的脚手架。

在 IE 中

http://myserver/gateway/myapp//themes/silver/theme.js

在 Chrome 中:(我可以在单独的窗口中点击我可以看到的文件)

http://myserver/gateway/myapp//themes/silver/static/items/my-app-ang/dist/themes/silver/theme.js

但是如果有人有类似的问题可以帮助我吗?

4

0 回答 0