我在使用 MVC4 捆绑和 TinyMCE 时遇到问题。我收到此错误:
GET http://localhost:54717/Admin/EditText//langs/da.js 404 (Not Found) Site:1
GET http://localhost:54717/Admin/EditText//plugins/lists/editor_plugin.js 404 (Not Found) Site:1
GET http://localhost:54717/Admin/EditText//plugins/autolink/editor_plugin.js 404 (Not Found) Site:1
GET http://localhost:54717/Admin/EditText//themes/advanced/editor_template.js 404 (Not Found) Site:1
GET http://localhost:54717/Admin/EditText//plugins/spellchecker/editor_plugin.js 404 (Not Found) Site:1
GET http://localhost:54717/Admin/EditText//plugins/pagebreak/editor_plugin.js 404 (Not Found) Site:1
GET http://localhost:54717/Admin/EditText//plugins/style/editor_plugin.js 404 (Not Found) Site:1
GET http://localhost:54717/Admin/EditText//plugins/table/editor_plugin.js 404 (Not Found) Site:1
GET http://localhost:54717/Admin/EditText//plugins/layer/editor_plugin.js 404 (Not Found) Site:1
GET http://localhost:54717/Admin/EditText//plugins/save/editor_plugin.js 404 (Not Found)
Failed to load: http://localhost:54717/Admin/EditText//langs/da.js
代码如下所示(在 BundleConfig.cs 中)
bundles.Add(
new ScriptBundle("~/Scripts/Site").Include(
"~/Scripts/jquery-1.9.1.js",
"~/Scripts/tinymce/tiny_mce.js",
"~/Scripts/jquery-ui-1.10.1.js",
"~/Scripts/jquery.ui.slider.js",
"~/Scripts/oline.Base.js",
"~/Scripts/Validate/Language/jquery.validationEngine-da.js",
"~/Scripts/Validate/jquery.validationEngine.js",
"~/Scripts/jquery.ui.effect-blind.js",
"~/Scripts/jquery.placeholder.min.js"));
BundleTable.EnableOptimizations = true;
在布局中:
@Scripts.Render("~/Scripts/Site")
但是,如果我从捆绑中删除 tiny_mce.js 并像这样放置它 <script src="~/Scripts/tinymce/tiny_mce.js"></script>
它工作得很好。是因为我需要覆盖tinymce的自动加载并手动放置吗?