asp如何换文本框?急急急!请ASP高手指点。网站后台编辑文章时,按钮都用不了,想直接换一个文本框,求教
嗯,就是程序自带的编辑器用不了。kindeditor-4.1.7有用吗?
可以啊,我就是这么换的,js
<script charset="utf-8" src="../editor/kindeditor.js"></script>
<script charset="utf-8" src="../editor/lang/zh_CN.js"></script>
<script>
KindEditor.ready(function(K) {
var editor = K.create('textarea[name="neirong"]', {
cssPath : '../editor/plugins/code/prettify.css',
uploadJson : '../editor/asp/upload_json.asp',
fileManagerJson : '../editor/asp/file_manager_json.asp',
allowFileManager : true,
afterBlur : function() {
this.sync();
K.ctrl(document, 13, function() {
K('form[name=myform]')[0].submit();
});
K.ctrl(this.edit.doc, 13, function() {
K('form[name=myform]')[0].submit();
});
}
});
prettyPrint();
});
</script>
<textarea id="editor_id" name="neirong" style="width:670px;height:300px;"></textarea>