admin管理员组文章数量:1394099
I'm using CKEditor 3.2, trying to change the width and height of the ckeditor from javascript, i have used several methods, all unsuccesful:
// doesnt work 1:
CKEDITOR.instances.myinstance.width = 500;
// doesnt work 2:
CKEDITOR.instances.myinstance.width = 500;
CKEDITOR.instances.myinstance.updateElement();
// doesnt work 3:
CKEDITOR.instances.myinstance.config.width = 500;
// doesnt work 4:
CKEDITOR.instances.myinstance.config.width = 500;
CKEDITOR.instances.myinstance.updateElement();
Anyone has any idea how to do this?
I'm using CKEditor 3.2, trying to change the width and height of the ckeditor from javascript, i have used several methods, all unsuccesful:
// doesnt work 1:
CKEDITOR.instances.myinstance.width = 500;
// doesnt work 2:
CKEDITOR.instances.myinstance.width = 500;
CKEDITOR.instances.myinstance.updateElement();
// doesnt work 3:
CKEDITOR.instances.myinstance.config.width = 500;
// doesnt work 4:
CKEDITOR.instances.myinstance.config.width = 500;
CKEDITOR.instances.myinstance.updateElement();
Anyone has any idea how to do this?
Share Improve this question edited Apr 21, 2010 at 10:12 Eytan Levit asked Apr 21, 2010 at 9:04 Eytan LevitEytan Levit 4739 silver badges27 bronze badges1 Answer
Reset to default 6Use CKEDITOR.instances.myinstance.resize(500, 400)
本文标签: How to change size of CKEditor from javascriptStack Overflow
版权声明:本文标题:How to change size of CKEditor from javascript - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744627321a2616337.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论