前台文本编辑器:
<meta charset="utf-8" />
<link rel="stylesheet" href="wbbjqh/themes/default/default.css" />
<link rel="stylesheet" href="wbbjqh/plugins/code/prettify.css" />
<script charset="utf-8" src="/wbbjqh/kindeditor.js"></script>
<script charset="utf-8" src="/wbbjqh/lang/zh_CN.js"></script>
<script charset="utf-8" src="/wbbjqh/plugins/code/prettify.js"></script>
<style>
form {
margin: 0;
}
textarea {
display: block;
}
</style>
<script charset="utf-8" src="../kindeditor-min.js"></script>
<script charset="utf-8" src="../lang/zh_CN.js"></script>
<script>
var editor;
KindEditor.ready(function(K) {
editor = K.create('textarea[name="q9"]', {
resizeType : 1,
allowPreviewEmoticons : false,
allowImageUpload : false,
items : [
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image', 'link']
});
});
</script>
<textarea name="q9" style="width:450px;height:150px;visibility:hidden;"></textarea>
第二个文本编辑器
<script>
var editor;
KindEditor.ready(function(K) {
editor = K.create('textarea[name="q11"]', {
resizeType : 1,
allowPreviewEmoticons : false,
allowImageUpload : false,
items : [
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image', 'link']
});
});
</script>
<textarea name="q11" style="width:450px;height:150px;visibility:hidden;"></textarea>
前台文本编辑器修改:
<%
Dim htmlData
htmlData = rs("q9")
Function htmlspecialchars(str)
str = Replace(str, "&", "&")
str = Replace(str, "<", "<")
str = Replace(str, ">", ">")
str = Replace(str, """", """)
htmlspecialchars = str
End Function
%>
<meta charset="utf-8" />
<link rel="stylesheet" href="/wbbjqh/themes/default/default.css" />
<link rel="stylesheet" href="/wbbjqh/plugins/code/prettify.css" />
<script charset="utf-8" src="/wbbjqh/kindeditor.js"></script>
<script charset="utf-8" src="/wbbjqh/lang/zh_CN.js"></script>
<script charset="utf-8" src="/wbbjqh/plugins/code/prettify.js"></script>
<style>
form {
margin: 0;
}
textarea {
display: block;
}
</style>
<script charset="utf-8" src="../kindeditor-min.js"></script>
<script charset="utf-8" src="../lang/zh_CN.js"></script>
<script>
var editor;
KindEditor.ready(function(K) {
editor = K.create('textarea[name="q9"]', {
resizeType : 1,
allowPreviewEmoticons : false,
allowImageUpload : false,
items : [
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image', 'link']
});
});
</script>
<textarea name="q9" style="width:450px;height:150px;visibility:hidden;"><%=htmlspecialchars(htmlData)%></textarea>
第二个修改:
<%
Dim htmlData1
htmlData1 = rs("q11")
Function htmlspecialchars(str)
str = Replace(str, "&", "&")
str = Replace(str, "<", "<")
str = Replace(str, ">", ">")
str = Replace(str, """", """)
htmlspecialchars = str
End Function
%>
<style>
form {
margin: 0;
}
textarea {
display: block;
}
</style>
<script charset="utf-8" src="../kindeditor-min.js"></script>
<script charset="utf-8" src="../lang/zh_CN.js"></script>
<script>
var editor;
KindEditor.ready(function(K) {
editor = K.create('textarea[name="q11"]', {
resizeType : 1,
allowPreviewEmoticons : false,
allowImageUpload : false,
items : [
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image', 'link']
});
});
</script>
<textarea name="q11" style="width:450px;height:150px;visibility:hidden;"><%=htmlspecialchars(htmlData1)%></textarea>
后台文本编辑器:
修改页面
======================
<%
Dim htmlData
htmlData = rso("content")
Function htmlspecialchars(str)
str = Replace(str, "&", "&")
str = Replace(str, "<", "<")
str = Replace(str, ">", ">")
str = Replace(str, """", """)
htmlspecialchars = str
End Function
%>
<meta charset="utf-8" />
<link rel="stylesheet" href="/wbbjqh/themes/default/default.css" />
<link rel="stylesheet" href="/wbbjqh/plugins/code/prettify.css" />
<script charset="utf-8" src="/wbbjqh/kindeditor.js"></script>
<script charset="utf-8" src="/wbbjqh/lang/zh_CN.js"></script>
<script charset="utf-8" src="/wbbjqh/plugins/code/prettify.js"></script>
<script>
KindEditor.ready(function(K) {
var editor1 = K.create('textarea[name="content"]', {
cssPath : '/wbbjqh/plugins/code/prettify.css',
uploadJson : '/wbbjqh/asp/upload_json.asp',
fileManagerJson : '/wbbjqh/asp/file_manager_json.asp',
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>
<textarea name="content" style="width:700px;height:300px;visibility:hidden;"><%=htmlspecialchars(htmlData)%></textarea>
添加页面
=================
<meta charset="utf-8" />
<link rel="stylesheet" href="/wbbjqh/themes/default/default.css" />
<link rel="stylesheet" href="/wbbjqh/plugins/code/prettify.css" />
<script charset="utf-8" src="/wbbjqh/kindeditor.js"></script>
<script charset="utf-8" src="/wbbjqh/lang/zh_CN.js"></script>
<script charset="utf-8" src="/wbbjqh/plugins/code/prettify.js"></script>
<script>
KindEditor.ready(function(K) {
var editor1 = K.create('textarea[name="content"]', {
cssPath : '/wbbjqh/plugins/code/prettify.css',
uploadJson : '/wbbjqh/asp/upload_json.asp',
fileManagerJson : '/wbbjqh/asp/file_manager_json.asp',
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>
<textarea name="content" style="width:700px;height:300px;visibility:hidden;"></textarea>
================================================
(发布时间:2012-11-17 22:55)