Ticket #5587: 5587_4.patch
File 5587_4.patch, 6.5 KB (added by , 13 years ago) |
---|
-
_source/plugins/dialog/plugin.js
903 903 children : contents.elements, 904 904 expand : !!contents.expand, 905 905 padding : contents.padding, 906 style : contents.style || 'width: 100%; height: 100%;'906 style : contents.style || 'width: 100%;' 907 907 }, pageHtml ); 908 908 909 909 // Create the HTML for the tab and the content block. -
_source/plugins/tabletools/dialogs/tableCell.js
8 8 var langTable = editor.lang.table, 9 9 langCell = langTable.cell, 10 10 langCommon = editor.lang.common, 11 rtlUI = editor.lang.dir == 'rtl', 11 12 validate = CKEDITOR.dialog.validate, 12 13 widthPattern = /^(\d+(?:\.\d+)?)(px|%)$/, 13 14 heightPattern = /^(\d+(?:\.\d+)?)px$/, 14 15 bind = CKEDITOR.tools.bind, 15 spacer = { type : 'html', html : ' ' }; 16 spacer = { type : 'html', html : ' ' }, 17 chooseBtnStyle = 'display:block;margin-top:6px;' + ( rtlUI ? 'margin-right:10px' : 'margin-left: 10px' ); 16 18 17 19 /** 18 20 * … … 71 73 72 74 return { 73 75 title : langCell.title, 74 minWidth : CKEDITOR.env.ie && CKEDITOR.env.quirks ? 550 : 480,75 minHeight : CKEDITOR.env.ie ? ( CKEDITOR.env.quirks ? 180 : 150 ) : 140,76 minWidth : CKEDITOR.env.ie && CKEDITOR.env.quirks? 450 : 400, 77 minHeight : CKEDITOR.env.ie && CKEDITOR.env.quirks? 220 : 200, 76 78 contents : [ 77 79 { 78 80 id : 'info', … … 99 101 type : 'text', 100 102 id : 'width', 101 103 label : langTable.width, 102 widths : [ '71%', '29%' ],103 labelLayout : 'horizontal',104 104 validate : validate[ 'number' ]( langCell.invalidWidth ), 105 105 106 106 // Extra labelling of width unit type. … … 139 139 { 140 140 type : 'select', 141 141 id : 'widthType', 142 labelLayout : 'horizontal',143 widths : [ '0%', '100%' ],144 142 label : editor.lang.table.widthUnit, 145 labelStyle: ' display:none',143 labelStyle: 'visibility:hidden', 146 144 'default' : 'px', 147 145 items : 148 146 [ … … 168 166 id : 'height', 169 167 label : langTable.height, 170 168 'default' : '', 171 widths : [ '71%', '29%' ],172 labelLayout : 'horizontal',173 169 validate : validate[ 'number' ]( langCell.invalidHeight ), 174 170 175 171 // Extra labelling of height unit type. … … 206 202 { 207 203 id : 'htmlHeightType', 208 204 type : 'html', 209 html : langTable.widthPx205 html : '<br />'+ langTable.widthPx 210 206 } 211 207 ] 212 208 }, … … 214 210 { 215 211 type : 'select', 216 212 id : 'wordWrap', 217 labelLayout : 'horizontal',218 213 label : langCell.wordWrap, 219 widths : [ '50%', '50%' ],220 214 'default' : 'yes', 221 215 items : 222 216 [ … … 245 239 { 246 240 type : 'select', 247 241 id : 'hAlign', 248 labelLayout : 'horizontal',242 249 243 label : langCell.hAlign, 250 widths : [ '50%', '50%' ],251 244 'default' : '', 252 245 items : 253 246 [ … … 278 271 { 279 272 type : 'select', 280 273 id : 'vAlign', 281 labelLayout : 'horizontal',274 282 275 label : langCell.vAlign, 283 widths : [ '50%', '50%' ],284 276 'default' : '', 285 277 items : 286 278 [ … … 333 325 type : 'select', 334 326 id : 'cellType', 335 327 label : langCell.cellType, 336 labelLayout : 'horizontal', 337 widths : [ '50%', '50%' ], 328 338 329 'default' : 'td', 339 330 items : 340 331 [ … … 355 346 type : 'text', 356 347 id : 'rowSpan', 357 348 label : langCell.rowSpan, 358 labelLayout : 'horizontal', 359 widths : [ '50%', '50%' ], 349 360 350 'default' : '', 361 351 validate : validate.integer( langCell.invalidRowSpan ), 362 352 setup : function( selectedCell ) … … 378 368 type : 'text', 379 369 id : 'colSpan', 380 370 label : langCell.colSpan, 381 labelLayout : 'horizontal', 382 widths : [ '50%', '50%' ], 371 383 372 'default' : '', 384 373 validate : validate.integer( langCell.invalidColSpan ), 385 374 setup : function( element ) … … 401 390 { 402 391 type : 'hbox', 403 392 padding : 0, 404 widths : [ ' 80%', '20%' ],393 widths : [ '60%', '40%' ], 405 394 children : 406 395 [ 407 396 { 408 397 type : 'text', 409 398 id : 'bgColor', 410 399 label : langCell.bgColor, 411 labelLayout : 'horizontal',412 widths : [ '70%', '30%' ],413 400 'default' : '', 414 401 setup : function( element ) 415 402 { … … 434 421 type : 'button', 435 422 id : 'bgColorChoose', 436 423 label : langCell.chooseColor, 437 style : 'margin-left: 10px',424 style : chooseBtnStyle, 438 425 onClick : function() 439 426 { 440 427 var self = this; … … 448 435 } 449 436 ] 450 437 }, 451 spacer,452 438 { 453 439 type : 'hbox', 454 440 padding : 0, 455 widths : [ ' 80%', '20%' ],441 widths : [ '60%', '40%' ], 456 442 children : 457 443 [ 458 444 { 459 445 type : 'text', 460 446 id : 'borderColor', 461 447 label : langCell.borderColor, 462 labelLayout : 'horizontal',463 widths : [ '70%', '30%' ],464 448 'default' : '', 465 449 setup : function( element ) 466 450 { … … 484 468 type : 'button', 485 469 id : 'borderColorChoose', 486 470 label : langCell.chooseColor, 487 style : 'margin-left: 10px',471 style : chooseBtnStyle, 488 472 onClick : function() 489 473 { 490 474 var self = this;