我在一个页面中使用多个 Ck 编辑器,我想在其中一个的编辑区域中提供固定的高度和宽度。我尝试使用 editor.resize('150','250',true) 。但是它不工作。任何人都可以帮助我解决这个问题吗?这是我的代码:
$('textarea#Users_about_me').ckeditor({
toolbar: [{
name: 'basicstyles',
items: ['Bold', 'Italic']
}, {
name: 'paragraph',
items: ['NumberedList', 'BulletedList']
}],
height: '300px',
width: '100%'
});
谢谢, 双联实验室
最佳答案
<textarea id="myfield" ></textarea>
CKEDITOR.replace('#myfield',{customConfig :'',width:'700px',height:'700px'});
关于javascript - CKEditor editor.resize() 在 jQuery 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20193114/