Ticket #6835: 6835.patch

File 6835.patch, 5.0 KB (added by Sa'ar Zac Elias, 13 years ago)
  • _source/plugins/clipboard/dialogs/paste.js

     
    210210                ]
    211211        };
    212212});
     213
     214// Resize the iframe on dialog resize (#6835).
     215CKEDITOR.dialog.on( 'resize', function( evt )
     216{
     217        var data = evt.data,
     218                dialog = data.dialog;
     219        if ( dialog._.name != 'paste' )
     220                return;
     221
     222        var iframeHolder = dialog.getContentElement( 'general', 'editing_area' ).getElement(),
     223                iframe = iframeHolder.getFirst(),
     224                // Get the height of the text above the iframe
     225                msgHeight = dialog._.contentSize.height - iframeHolder.getParent().getSize( 'height', 1 );
     226
     227        iframe && iframe.setSize( 'height', data.height - msgHeight, 1 );
     228}, null, null, 1 );
     229 No newline at end of file
  • _source/plugins/colordialog/dialogs/colordialog.js

     
    251251                        title : lang.title,
    252252                        minWidth : 360,
    253253                        minHeight : 220,
     254                        resizable : CKEDITOR.DIALOG_RESIZE_NONE,
    254255                        onLoad : function()
    255256                        {
    256257                                // Update reference.
  • _source/plugins/find/dialogs/find.js

     
    602602                var lang = editor.lang.findAndReplace;
    603603                return {
    604604                        title : lang.title,
    605                         resizable : CKEDITOR.DIALOG_RESIZE_NONE,
    606605                        minWidth : 350,
    607606                        minHeight : 165,
    608607                        buttons : [ CKEDITOR.dialog.cancelButton ],             // Cancel button only.
  • _source/plugins/pastetext/dialogs/pastetext.js

     
    6767                                ]
    6868                        };
    6969                });
     70
     71        // Resize the textarea on dialog resize (#6835).
     72        CKEDITOR.dialog.on( 'resize', function( evt )
     73        {
     74                var data = evt.data,
     75                        dialog = data.dialog;
     76                if ( dialog._.name != 'pastetext' )
     77                        return;
     78
     79                var content = dialog.getContentElement( 'general', 'content' ).getInputElement().getParent(),
     80                        msgHeight = dialog.getContentElement( 'general', 'pasteMsg' ).getElement().getSize( 'height', 1 );
     81
     82                content && content.setSize( 'height', data.height - msgHeight, 1 );
     83        });
    7084})();
  • _source/plugins/specialchar/dialogs/specialchar.js

     
    190190                title : lang.title,
    191191                minWidth : 430,
    192192                minHeight : 280,
     193                resizable : CKEDITOR.DIALOG_RESIZE_NONE,
    193194                buttons : [ CKEDITOR.dialog.cancelButton ],
    194195                charColumns : 17,
    195196                onLoad :  function()
  • _source/skins/kama/dialog.css

     
    770770        background-color : white;
    771771}
    772772
    773 .cke_skin_kama .cke_dialog .cke_pastetext
    774 {
    775         width: 346px;
    776         height: 170px;
    777 }
    778 
    779773.cke_skin_kama .cke_dialog .cke_pastetext textarea
    780774{
    781         width: 340px;
    782         height: 170px;
    783         resize: none;
     775        width: 100%;
    784776}
    785777
    786778.cke_skin_kama .cke_dialog iframe.cke_pasteframe
    787779{
    788         width: 346px;
    789         height: 130px;
     780        width: 100%;
    790781        background-color: white;
    791782        border: 1px solid black;
    792783}
  • _source/skins/office2003/dialog.css

     
    698698        background-color : white;
    699699}
    700700
    701 .cke_skin_office2003 .cke_dialog .cke_pastetext
    702 {
    703         width: 346px;
    704         height: 170px;
    705 }
    706 
    707701.cke_skin_office2003 .cke_dialog .cke_pastetext textarea
    708702{
    709         width: 340px;
    710         height: 170px;
    711         resize: none;
     703        width: 100%;
    712704}
    713705
    714706.cke_skin_office2003 .cke_dialog iframe.cke_pasteframe
    715707{
    716         width: 346px;
    717         height: 130px;
     708        width: 100%;
    718709        background-color: white;
    719710        border: 1px solid black;
    720711}
  • _source/skins/v2/dialog.css

     
    700700        background-color : white;
    701701}
    702702
    703 .cke_skin_v2 .cke_dialog .cke_pastetext
    704 {
    705         width: 346px;
    706         height: 170px;
    707 }
    708 
    709703.cke_skin_v2 .cke_dialog .cke_pastetext textarea
    710704{
    711         width: 340px;
    712         height: 170px;
    713         resize: none;
     705        width: 100%;
    714706}
    715707
    716708.cke_skin_v2 .cke_dialog iframe.cke_pasteframe
    717709{
    718         width: 346px;
    719         height: 130px;
     710        width: 100%;
    720711        background-color: white;
    721712        border: 1px solid black;
    722713}
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy