使用CKEditor提交表单无法获取到textarea的值解决方法

前端开发CKEditor 641

使用了CKEditor的Textarea的值在表单提交的时候并非在CK编辑器中的值,所以在提交的时候是错误的数据,可以使用下面代码在提交数据前同步一下数据就可以了:

		for(name in CKEDITOR.instances)
		{
			CKEDITOR.instances[name].updateElement();
		}	     

Post Comment