在普通的asp页面正常,在vs2010的模板页下的内容页也正常,就是在项目中的内容页显示不正常
<%@ Page Title="" Language="C#" MasterPageFile="~/HMaster/Site.Master" AutoEventWireup="true" CodeBehind="news.aspx.cs" Inherits="educationalHome.Mes.news" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<script src="kindeditor-4.1.7/kindeditor.js" type="text/javascript"></script>
<script src="kindeditor-4.1.7/lang/zh_CN.js" type="text/javascript"></script>
<script src="kindeditor-4.1.7/plugins/code/prettify.js" type="text/javascript"></script>
<script>
KindEditor.ready(function (K) {
var editor1 = K.create('#content2', {
cssPath: '../Mes/kindeditor-4.1.7/plugins/code/prettify.css',
uploadJson: 'Kindeditor/asp.net/upload_json.ashx',
fileManagerJson: 'Kindeditor/asp.net/file_manager_json.ashx',
allowFileManager: true,
afterCreate: function () {
var self = this;
K.ctrl(document, 13, function () {
self.sync();
K('form[name=example]')[0].submit();
});
K.ctrl(self.edit.doc, 13, function () {
self.sync();
K('form[name=example]')[0].submit();
});
}
});
prettyPrint();
});
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<textarea id="content2" name="content" style="width:562px; height:371px;"></textarea>
</asp:Content>
运行后的结果:只显示一行: