KindEditor 4.1.2 编辑器怎么调用,我调用不出来
KindEditor 4.1.2 编辑器怎么调用,我调用不出来,引用页面都引用了,都不行啊,怎么回事
按照官方网站说的做,也不行
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
this.Label1.Text = Request.Form["content1"];
}
</script>
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>
<textarea id="content1" name="content" runat="server" style="width:700px; height:300px;visibility:hidden;">
</textarea>
<link rel="stylesheet" href="editor/themes/default/default.css" />
<link rel="stylesheet" href="editor/plugins/code/prettify.css" />
<script charset="utf-8" src="editor/kindeditor.js"></script>
<script charset="utf-8" src="editor/lang/zh_CN.js"></script>
<script charset="utf-8" src="editor/plugins/code/prettify.js"></script>
<script>
KindEditor.ready(function(K) {
var editor1 = K.create('#content1', {
cssPath : 'editor/plugins/code/prettify.css',
uploadJson : 'editor/asp.net/upload_json.ashx',
fileManagerJson : 'editor/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>
<script src="editor/lang/zh_CN.js" type="text/javascript"></script>
<script src="editor/kindeditor.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript">
var editor;
KindEditor.ready(function(K) {
editor = K.create('#content1');
});
</script>