Ticket #3391: 3391_2.patch
File 3391_2.patch, 9.0 KB (added by , 15 years ago) |
---|
-
_source/plugins/dialog/plugin.js
727 727 children : contents.elements, 728 728 expand : !!contents.expand, 729 729 padding : contents.padding, 730 style : 'width: 100%; height: 100%;'730 style : contents.style || 'width: 100%; height: 100%;' 731 731 }, pageHtml ); 732 732 733 733 // Create the HTML for the tab and the content block. -
_source/plugins/dialogui/plugin.js
132 132 html.push( '<div class="cke_dialog_ui_labeled_label" id="', 133 133 _.labelId, 134 134 '" >', 135 CKEDITOR.tools.htmlEncode( elementDefinition.label ),135 elementDefinition.label, 136 136 '</div>', 137 137 '<div class="cke_dialog_ui_labeled_content">', 138 138 contentHtml( dialog, elementDefinition ), -
_source/plugins/table/dialogs/table.js
22 22 23 23 return { 24 24 title : editor.lang.table.title, 25 minWidth : 430,26 minHeight : 180,25 minWidth : 250, 26 minHeight : CKEDITOR.env.ie ? 280 : 265, 27 27 onShow : function() 28 28 { 29 29 // Detect if there's a selected table. … … 198 198 { 199 199 id : 'info', 200 200 label : editor.lang.table.title, 201 accessKey : 'I',202 201 elements : 203 202 [ 204 203 { 205 204 type : 'hbox', 206 widths : [ '40%', '10%', '60%' ], 205 widths : [ null, '1%' ], 206 styles : [ 'vertical-align:top' ], 207 207 children : 208 208 [ 209 209 { … … 213 213 [ 214 214 { 215 215 type : 'text', 216 id : 'txtRows', 217 labelLayout : 'horizontal', 218 widths : [ '60%','40%' ], 219 style : 'width:105px', 216 id : 'txtRows', 220 217 'default' : 3, 221 218 label : editor.lang.table.rows, 219 style : 'width:5em', 222 220 validate : function() 223 221 { 224 222 var pass = true, … … 241 239 { 242 240 type : 'text', 243 241 id : 'txtCols', 244 labelLayout : 'horizontal',245 widths : [ '60%','40%' ],246 style : 'width:105px',247 242 'default' : 2, 248 243 label : editor.lang.table.columns, 244 style : 'width:5em', 249 245 validate : function() 250 246 { 251 247 var pass = true, … … 266 262 commit : commitValue 267 263 }, 268 264 { 265 type : 'html', 266 html : ' ' 267 }, 268 { 269 269 type : 'select', 270 270 id : 'selHeaders', 271 labelLayout : 'horizontal',272 271 'default' : '', 273 widths : [ '40%', '60%' ],274 272 label : editor.lang.table.headers, 275 273 items : 276 274 [ … … 307 305 { 308 306 type : 'text', 309 307 id : 'txtBorder', 310 labelLayout : 'horizontal',311 widths : [ '60%','40%' ],312 style : 'width:105px',313 308 'default' : 1, 314 309 label : editor.lang.table.border, 310 style : 'width:3em', 315 311 validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidBorder ), 316 312 setup : function( selectedTable ) 317 313 { … … 328 324 { 329 325 id : 'cmbAlign', 330 326 type : 'select', 331 labelLayout : 'horizontal',332 327 'default' : '', 333 widths : [ '40%','60%' ],334 328 label : editor.lang.table.align, 335 329 items : 336 330 [ … … 354 348 ] 355 349 }, 356 350 { 357 type : 'html',358 align : 'right',359 html : ''360 },361 {362 351 type : 'vbox', 363 align : 'right',364 352 padding : 0, 365 353 children : 366 354 [ 367 355 { 368 356 type : 'hbox', 369 align : 'center', 370 widths : [ '70%', '30%' ], 357 widths : [ '5em' ], 371 358 children : 372 359 [ 373 360 { 374 361 type : 'text', 375 362 id : 'txtWidth', 376 labelLayout : 'horizontal', 377 widths : [ '50%','50%' ], 363 style : 'width:5em', 378 364 label : editor.lang.table.width, 379 365 'default' : 200, 380 366 validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidWidth ), … … 389 375 { 390 376 id : 'cmbWidthType', 391 377 type : 'select', 392 labelLayout : 'horizontal', 393 widths : [ '0%','100%' ], 394 label : '', 378 label : ' ', 395 379 'default' : 'pixels', 396 380 items : 397 381 [ … … 410 394 }, 411 395 { 412 396 type : 'hbox', 413 widths : [ ' 70%', '30%' ],397 widths : [ '5em' ], 414 398 children : 415 399 [ 416 400 { 417 401 type : 'text', 418 402 id : 'txtHeight', 419 labelLayout : 'horizontal', 420 widths : [ '50%','50%' ], 403 style : 'width:5em', 421 404 label : editor.lang.table.height, 422 405 'default' : '', 423 406 validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidHeight ), … … 431 414 }, 432 415 { 433 416 type : 'html', 434 html : editor.lang.table.widthPx417 html : '<br />' + editor.lang.table.widthPx 435 418 } 436 419 ] 437 420 }, … … 442 425 { 443 426 type : 'text', 444 427 id : 'txtCellSpace', 445 labelLayout : 'horizontal', 446 widths : [ '50%','50%' ], 447 style : 'width:140px', 428 style : 'width:3em', 448 429 label : editor.lang.table.cellSpace, 449 430 'default' : 1, 450 431 validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidCellSpacing ), … … 463 444 { 464 445 type : 'text', 465 446 id : 'txtCellPad', 466 labelLayout : 'horizontal', 467 widths : [ '50%','50%' ], 468 style : 'width:140px', 447 style : 'width:3em', 469 448 label : editor.lang.table.cellPad, 470 449 'default' : 1, 471 450 validate : CKEDITOR.dialog.validate['number']( editor.lang.table.invalidCellPadding ), … … 496 475 children : 497 476 [ 498 477 { 499 id : 'txtCaption',500 478 type : 'text', 501 479 label : editor.lang.table.caption, 502 widths : [ '30%','70%' ],503 labelLayout : 'horizontal',504 'default' : '',505 style : 'width:400px',506 480 setup : function( selectedTable ) 507 481 { 508 482 var nodeList = selectedTable.getElementsByTag( 'caption' ); … … 543 517 } 544 518 }, 545 519 { 546 id : 'txtSummary',547 520 type : 'text', 548 labelLayout : 'horizontal',549 521 label : editor.lang.table.summary, 550 'default' : '',551 widths : [ '30%','70%' ],552 accessKey : 'A',553 style : 'width:400px',554 522 setup : function( selectedTable ) 555 523 { 556 524 this.setValue( selectedTable.getAttribute( 'summary' ) || '' ); -
_source/skins/office2003/dialog.css
308 308 width: 100%; 309 309 } 310 310 311 .cke_skin_office2003 .cke_dialog_ui_hbox_first, 312 .cke_skin_office2003 .cke_dialog_ui_hbox_child, 313 .cke_skin_office2003 .cke_dialog_ui_hbox_last 314 { 315 vertical-align: top; 316 } 317 318 .cke_skin_office2003 .cke_ltr .cke_dialog_ui_hbox_first, 319 .cke_skin_office2003 .cke_ltr .cke_dialog_ui_hbox_child 320 { 321 padding-right: 10px; 322 } 323 311 324 .cke_skin_office2003 .cke_rtl .cke_dialog_ui_hbox_first, 312 325 .cke_skin_office2003 .cke_rtl .cke_dialog_ui_hbox_child 313 326 { 314 327 padding-left: 10px; 315 vertical-align: top;316 328 } 317 329 318 330 /* button */ -
_source/skins/v2/dialog.css
305 305 width: 100%; 306 306 } 307 307 308 .cke_skin_v2 .cke_dialog_ui_hbox_first, 309 .cke_skin_v2 .cke_dialog_ui_hbox_child, 310 .cke_skin_v2 .cke_dialog_ui_hbox_last 311 { 312 vertical-align: top; 313 } 314 315 .cke_skin_v2 .cke_ltr .cke_dialog_ui_hbox_first, 316 .cke_skin_v2 .cke_ltr .cke_dialog_ui_hbox_child 317 { 318 padding-right: 10px; 319 } 320 308 321 .cke_skin_v2 .cke_rtl .cke_dialog_ui_hbox_first, 309 322 .cke_skin_v2 .cke_rtl .cke_dialog_ui_hbox_child 310 323 { 311 324 padding-left: 10px; 312 vertical-align: top;313 325 } 314 326 315 327 /* button */