Javascript 如何在ckeditor中定义COL

Javascript 如何在ckeditor中定义COL,javascript,java,ckeditor,Javascript,Java,Ckeditor,我是如何用ckEditor在文本区定义COL的,在许多网站上阅读,却没有找到答案。我使用了隐式代码,但它不起作用 页面 下面介绍了调整文本编辑器大小的默认方法 或者,您也可以按照所述在配置中调整大小 为了更好地格式化,width和height比cols和行更受欢迎——使用em大小而不是像素。描述了调整文本编辑器大小的默认方法 或者,您也可以按照所述在配置中调整大小 为了更好地格式化,width和height比cols和rows更受欢迎——使用em大小,而不是像素。Thk,但这不起作用,我真正的问

我是如何用ckEditor在文本区定义COL的,在许多网站上阅读,却没有找到答案。我使用了隐式代码,但它不起作用

页面


下面介绍了调整文本编辑器大小的默认方法 或者,您也可以按照所述在配置中调整大小


为了更好地格式化,
width
height
cols
更受欢迎——使用
em
大小而不是像素。

描述了调整文本编辑器大小的默认方法 或者,您也可以按照所述在配置中调整大小


为了更好地格式化,
width
height
cols
rows
更受欢迎——使用
em
大小,而不是像素。

Thk,但这不起作用,我真正的问题是我想定义一个cols限制,当限制cols出现时,不扩展文本区域并打断行。Thk,但它不起作用,我真正的问题是我想定义一个cols的限制,当限制cols出现时,不要扩展TextArea并打断行。
<textarea id="ckEditor" name="ckEditor" rows="25" cols="30" ></textarea>
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.allowedContent = true;   
config.extraPlugins = 'imprimirdoc';
config.toolbar = [{name: 'styles', items:['Font','FontSize']},{name: 'basicstyles', items: ['Bold', 'Italic','Underline']},['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord','-', 'Undo', 'Redo'],{name: 'document', items:['imprimirdoc','Preview']},{name: 'editing', items: ['Find','SelectAll','-','Scayt']},'/',                                                                                                                                                        
                 {name: 'paragraph', items:['NumberedList','BulletedList','-','Outdent', 'Indent', '-', 'Blockquote','-', 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','BidiLtr','BidiRtl' ]},
                 {name: 'insert', items:['Table','HorizontalRule','SpecialChar', 'PageBreak']},
                 {name: 'colors', items:['TextColor', 'BGColor']},
                 {name: 'tools', items: [ 'Maximize']}];
config.pasteFromWordRemoveStyles = false;
config.contentsCss = ['contents.css'];
config.cols = 10;