<
head
runat
=
"server"
>
<
title
>KindEditor ASP.NET文本编辑器</
title
>
<
link
href
=
"themes/default/default.css"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
link
href
=
"plugins/code/prettify.css"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
script
src
=
"plugins/code/prettify.js"
type
=
"text/javascript"
></
script
>
<
script
src
=
"kindeditor.js"
type
=
"text/javascript"
></
script
>
<
script
src
=
"lang/zh_CN.js"
type
=
"text/javascript"
></
script
>
<
script
type
=
"text/javascript"
>
KindEditor.ready(function (K) {
var editor1 = K.create('#content1', {
cssPath: 'plugins/code/prettify.css',
uploadJson: 'asp.net/upload_json.ashx',
fileManagerJson: '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
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
textarea
id
=
"content1"
cols
=
"100"
rows
=
"8"
style
=
"width:700px;height:200px;visibility:hidden;"
runat
=
"server"
enableviewstate
=
"True"
></
textarea
>
</
form
>
</
body
>