我想在前台做验证
但net版本是不需要进行注册就可以用的
也就是说不存在var editor = CKEDITOR.replace('txtDesc');,类似于直接在textBox设定样式class="ckeditor"所以这时候也就不存在editor.document.getBody().getText(),或者有什么办法找出这个editor来我用CKEDITOR.instances.content.getData() 就直接在浏览器报错
错误: 'CKEDITOR.instances.content' 为空或不是对象我应该怎么样做验证?我用的是ckeditor_aspnet_3.5.3版本,JQuery是1.5版本
开发环境是VS2008 sp1
但net版本是不需要进行注册就可以用的
也就是说不存在var editor = CKEDITOR.replace('txtDesc');,类似于直接在textBox设定样式class="ckeditor"所以这时候也就不存在editor.document.getBody().getText(),或者有什么办法找出这个editor来我用CKEDITOR.instances.content.getData() 就直接在浏览器报错
错误: 'CKEDITOR.instances.content' 为空或不是对象我应该怎么样做验证?我用的是ckeditor_aspnet_3.5.3版本,JQuery是1.5版本
开发环境是VS2008 sp1
解决方案 »
- 怎样用javascript动态生成单选按钮,下拉列表,多选框 以及文本框等等
- jquery+li 树实现
- 请教一下javascript能不能转成.NET或不客户端显示?
- 怎么判断一个jsp页面中是否已经弹出alert信息?急!!
- [高手帮帮忙!!]js字符串截取,获取用"<-","->"括起来的字符串。
- 关于动态添加表单的问题!请各位高手帮忙!急用!谢谢!
- 如何得到鼠标点击图片的位置
- 寻找提高效率的方法,请高手执教。
- 初学,一个简单问题,同时请老手推荐一本入门的书。
- 谁有http://211.100.6.72的源代码最好有附带的数据库连接说明。200
- js中怎样将下面的代码用循环写出来
- 样式 占位 css
How Do I Read or Write the Contents of CKEditor from JavaScript?If you want to read CKEditor contents, use the getData() method. CKEDITOR.instances.editor1.getData() If you want to write some content into CKEditor, use the setData(data, callback) method. An example of how to use these functions can be found in the Basic usage of the API sample (api.html) located in the _samples directory of CKEditor installation package. 文档地址
http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#getData
http://docs.cksource.com/CKEditor_3.x/Howto/Reading_Editor_Contentsjquery集成
http://docs.cksource.com/CKEditor_3.x/Developers_Guide/jQuery_Adapter