使用MVC4與TinyMCE捆綁在一起時出現問題。我得到這個錯誤:與TinyMCE捆綁的MVC4
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重寫自動加載並將其手動執行?
+1。看起來有點粗糙,但在檢查了所有可能的解決方案之後,聽起來像是最乾淨和直觀的。 –