KindEditor得不到textarea值的解决方法

2015-03-23 0 1,010
KindEditor得不到textarea值的解决方法
<script language = "JavaScript">
KindEditor.ready(function(K) {
	var editor1 = K.create('textarea[name="Content"]', {
			cssPath : 'kindeditor-4.1.10/plugins/code/prettify.css',
			uploadJson : 'kindeditor-4.1.10/asp/upload_json.asp',
			fileManagerJson : 'kindeditor-4.1.10/asp/file_manager_json.asp',
			allowFileManager : true,
			afterCreate : function() {
				var self = this;
				K.ctrl(document, 13, function() {
					self.sync();
					K('form[name=myform]')[0].submit();
				});
				K.ctrl(self.edit.doc, 13, function() {
					self.sync();
					K('form[name=myform]')[0].submit();
				});
			},
			afterBlur: function(){this.sync();}
		});
		prettyPrint();
	});
</script>

遇见资源网 html KindEditor得不到textarea值的解决方法 http://www.ox520.com/14106.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务