<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>CKEditorTest</title>
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#save').click(function(){
var a = CKEDITOR.instances.ck.getData();
alert(a);
var paras = "concent=" + a;
$.get('test.ashx', paras);
})
}
) </script>
</head>
<body>
<form id="form1" runat="server">
<div>
<textarea rows="30" cols="50" runat="server" id="ck"></textarea>
<input type="text" value="123" id="ts"/>
<input type="button" value="保存" id="save" />
</div>
</form>
</body>
<script type="text/javascript">
CKEDITOR.replace('ck');
</script>
</html>
在页面中CKEditor控件中输入内容时空格后的内容无法在ashx中获取到