【发布时间】:2013-07-13 23:18:50
【问题描述】:
我正在尝试使用 CKEditor,我需要更改大小,但这不是真正的问题,因为我可以。问题是当我更改大小时,我无法将数据设置为 textarea。我认为问题在于尺寸变化,因为当我不使用它时,我没有任何问题。
我用来改变大小的表格是:
CKEDITOR.replace('editor'+id,{height: "70%"});
editor = CKEDITOR.appendTo( 'editor'+id);
效果很好!问题是当我像这样使用setData() 时:
editor.setData(text); //where text is the data;
【问题讨论】:
标签: javascript jquery size height ckeditor