我有一个内联网网站,我有一个页面可以添加新产品。
我使用ckeditor因为我需要保存一些链接。
现在我必须将其更改为Master详细信息表单,因此我决定使用Json2和DataTables。
最奇怪的是,当我加入
时<script src="@Url.Content("~/Scripts/jquery-1.5.1.js")" type="text/javascript">
ckeditor不再工作了。
这些是我导入的所有脚本
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@*This is for CKEditor*@
<script src="@Url.Content("~/content/javascript/CKEditor/ckeditor.js")" type="text/javascript" ></script>
<script src="@Url.Content("~/content/javascript/CKEditor/adapters/jquery.js")" type="text/javascript" ></script>
@*This is for jquery*@
<script src="@Url.Content("~/Scripts/jquery-1.5.1.js")" type="text/javascript"></script>
@*This is for JSON*@
<script src="@Url.Content("~/Scripts/json2.js")" type="text/javascript"></script>
@*These are for DataTables*@
<script src="@Url.Content("~/Scripts/DataTables-1.9.4/media/js/jquery.dataTables.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/DataTables-1.9.4/extras/TableTools/media/js/TableTools.js")"
type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/DataTables-1.9.4/extras/TableTools/media/js/ZeroClipboard.js")"
type="text/javascript"></script>
@*These are for styling Control*@
<link href="@Url.Content("~/Content/DataTables-1.9.4/extras/TableTools/media/css/TableTools.css")"
rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/DataTables-1.9.4/extras/TableTools/media/css/TableTools_JUI.css")"
rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/themes/base/jquery.ui.all.css")" rel="stylesheet" type="text/css" />
任何想法??
答案 0 :(得分:1)
在添加ckeditor之前,应该添加对jquery的引用。适配器设置为扩展jquery。