ckeditor 在mvc4發佈後出現無法顯示的情況

ckeditor 在mvc4發佈後出現無法顯示的情況,使用js控制檯發現ckeditor.js調用其它js文件的路徑出錯,找不到那些文件。

錯誤的是:

bundles.Add(new ScriptBundle("~/bundles/ckeditor").Include(
 "~/Scripts/ckeditor/ckeditor.js"));

 

改爲正確的方式:

<script src="~/Scripts/ckeditor/ckeditor.js" type="text/javascript"></script>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章