69 | | id : 'cols', |
70 | | type : 'text', |
71 | | label : editor.lang.textarea.cols, |
72 | | 'default' : '', |
73 | | accessKey : 'C', |
74 | | style : 'width:50px', |
75 | | validate : CKEDITOR.dialog.validate.integer( editor.lang.common.validateNumberFailed ), |
76 | | setup : function( element ) |
77 | | { |
78 | | var value = element.hasAttribute( 'cols' ) && element.getAttribute( 'cols' ); |
79 | | this.setValue( value || '' ); |
80 | | }, |
81 | | commit : function( element ) |
82 | | { |
83 | | if ( this.getValue() ) |
84 | | element.setAttribute( 'cols', this.getValue() ); |
85 | | else |
86 | | element.removeAttribute( 'cols' ); |
87 | | } |
| 69 | type : 'hbox', |
| 70 | widths:['50%','50%'], |
| 71 | children:[ |
| 72 | { |
| 73 | id : 'cols', |
| 74 | type : 'text', |
| 75 | label : editor.lang.textarea.cols, |
| 76 | 'default' : '', |
| 77 | accessKey : 'C', |
| 78 | style : 'width:50px', |
| 79 | validate : CKEDITOR.dialog.validate.integer( editor.lang.common.validateNumberFailed ), |
| 80 | setup : function( element ) |
| 81 | { |
| 82 | var value = element.hasAttribute( 'cols' ) && element.getAttribute( 'cols' ); |
| 83 | this.setValue( value || '' ); |
| 84 | }, |
| 85 | commit : function( element ) |
| 86 | { |
| 87 | if ( this.getValue() ) |
| 88 | element.setAttribute( 'cols', this.getValue() ); |
| 89 | else |
| 90 | element.removeAttribute( 'cols' ); |
| 91 | } |
| 92 | }, |
| 93 | { |
| 94 | id : 'rows', |
| 95 | type : 'text', |
| 96 | label : editor.lang.textarea.rows, |
| 97 | 'default' : '', |
| 98 | accessKey : 'R', |
| 99 | style : 'width:50px', |
| 100 | validate : CKEDITOR.dialog.validate.integer( editor.lang.common.validateNumberFailed ), |
| 101 | setup : function( element ) |
| 102 | { |
| 103 | var value = element.hasAttribute( 'rows' ) && element.getAttribute( 'rows' ); |
| 104 | this.setValue( value || '' ); |
| 105 | }, |
| 106 | commit : function( element ) |
| 107 | { |
| 108 | if ( this.getValue() ) |
| 109 | element.setAttribute( 'rows', this.getValue() ); |
| 110 | else |
| 111 | element.removeAttribute( 'rows' ); |
| 112 | } |
| 113 | } |
| 114 | ] |