且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

TinyMCE 在 FireFox 上不起作用

更新时间:2023-01-08 14:27:49

如果 TinyMCE 无法确定其插件/主题文件的正确后缀,就会发生这种情况.通常在您重命名 TinyMCE 主脚本文件时会发生这种情况.请注意,TinyMCE 脚本加载器具有可识别文件名的硬编码列表:

This can happen if TinyMCE cannot determine the correct suffix for its plugin / theme files. Usually this happens when you rename the TinyMCE main script file. Note that the TinyMCE script loader has a hard-coded list of recognized file names:

// Script types supported:
// tinymce.js tinymce.min.js tinymce.dev.js
// tinymce.jquery.js tinymce.jquery.min.js tinymce.jquery.dev.js
// tinymce.full.js tinymce.full.min.js tinymce.full.dev.js

因此,如果您确实需要为主 TinyMCE 脚本文件提供非标准文件名,则可能需要以编程方式提供默认的.min"后缀:

so you might need to provide the default ".min" suffix programmatically if you really need to have a non-standard file name for the main TinyMCE script file:

tinymce.suffix = ".min"