majunjie_99
2018-12-26 14:00关于向CKEDITOR中赋值
var tid=$(obj).attr("id");
//帖子信息回显
$.post(contentPath+"/getTopicByTid/"+tid,function(resp){
console.log(resp);
$("#t_title").val(resp.t_title);
CKEDITOR.instances.t_content.setData("hello");
$("#t_sid").val(resp.t_sid);
});
一直报错:
Uncaught TypeError: Cannot read property 'setData' of undefined
求助大神帮忙解释
- 点赞
- 回答
- 收藏
- 复制链接分享
3条回答
为你推荐
- Ckeditor 5文件上传适配器错误
- laravel
- ckeditor
- php
- 2个回答
- 适用于使用ckEditor进行内联编辑
- html
- ckeditor
- php
- 2个回答
- 找不到“dosamigos \ ckeditor \ CKEditor”类
- yii2
- ckeditor
- php
- 1个回答
- CKEditor + CKFinder图片上传
- javascript
- ckeditor
- php
- ckfinder
- 1个回答
- ckeditor插件的代码片段?
- ckeditor
- php
- 1个回答
换一换