Ticket #3387: 3387.patch

File 3387.patch, 7.2 KB (added by Frederico Caldeira Knabben, 15 years ago)
  • _source/plugins/elementspath/plugin.js

     
    2525                }
    2626        };
    2727
     28        var emptyHtml = '<span class="cke_empty">&nbsp;</span>';
     29
    2830        CKEDITOR.plugins.add( 'elementspath',
    2931        {
    3032                requires : [ 'selection' ],
     
    4749                        editor.on( 'themeSpace', function( event )
    4850                                {
    4951                                        if ( event.data.space == 'bottom' )
    50                                                 event.data.html += '<div id="' + spaceId + '" class="cke_path"><span class="cke_empty">&nbsp;</span></div>';
     52                                                event.data.html += '<div id="' + spaceId + '" class="cke_path">' + emptyHtml + '</div>';
    5153                                });
    5254
    5355                        editor.on( 'selectionChange', function( ev )
     
    102104                                                element = element.getParent();
    103105                                        }
    104106
    105                                         getSpaceElement().setHtml( html.join('') );
     107                                        getSpaceElement().setHtml( html.join('') + emptyHtml );
    106108                                });
    107109
    108110                        editor.on( 'contentDomUnload', function()
    109111                                {
    110                                         getSpaceElement().setHtml( '<br>' );
     112                                        getSpaceElement().setHtml( emptyHtml );
    111113                                });
    112114
    113115                        editor.addCommand( 'elementsPathFocus', commands.toolbarFocus );
  • _source/plugins/sourcearea/plugin.js

     
    1818
    1919                editor.on( 'editingBlockReady', function()
    2020                        {
    21                                 var textarea;
     21                                var textarea,
     22                                        onResize;
    2223
    2324                                editor.addMode( 'source',
    2425                                        {
    2526                                                load : function( holderElement, data )
    2627                                                {
     28                                                        if ( CKEDITOR.env.ie && CKEDITOR.env.version < 8 )
     29                                                                holderElement.setStyle( 'position', 'relative' );
     30
    2731                                                        // Create the source area <textarea>.
    2832                                                        textarea = new CKEDITOR.dom.element( 'textarea' );
    2933                                                        textarea.setAttributes(
     
    3943                                                                outline : 'none',
    4044                                                                'text-align' : 'left' });
    4145
    42                                                         // The textarea height/width='100%' doesn't
    43                                                         // constraint to the 'td' in IE strick mode
    4446                                                        if ( CKEDITOR.env.ie )
    4547                                                        {
    46                                                                 textarea.setStyles({
    47                                                                         height : holderElement.$.clientHeight + 'px',
    48                                                                         width : holderElement.$.clientWidth + 'px' });
     48                                                                if ( CKEDITOR.env.quirks || CKEDITOR.env.version < 8 )
     49                                                                {
     50                                                                        // In IE, we must use absolute positioning to
     51                                                                        // have the textarea filling the full content
     52                                                                        // space height.
     53                                                                        holderElement.setStyle( 'position', 'relative' );
     54                                                                        textarea.setStyle( 'position', 'absolute' );
     55                                                                }
     56
     57                                                                if ( !CKEDITOR.env.quirks || CKEDITOR.env.version < 7 )
     58                                                                {
     59                                                                        onResize = function()
     60                                                                                {
     61                                                                                        textarea.setStyles({
     62                                                                                                height : holderElement.$.clientHeight + 'px',
     63                                                                                                width : holderElement.$.clientWidth + 'px' });
     64                                                                                };
     65                                                                        editor.on( 'resize', onResize );
     66                                                                        onResize();
     67                                                                }
    4968                                                        }
    50 
    51                                                         // By some yet unknown reason, we must stop the
    52                                                         // mousedown propagation for the textarea,
    53                                                         // otherwise it's not possible to place the caret
    54                                                         // inside of it (non IE).
    55                                                         if ( !CKEDITOR.env.ie )
     69                                                        else
    5670                                                        {
     71                                                                // By some yet unknown reason, we must stop the
     72                                                                // mousedown propagation for the textarea,
     73                                                                // otherwise it's not possible to place the caret
     74                                                                // inside of it (non IE).
    5775                                                                textarea.on( 'mousedown', function( evt )
    5876                                                                        {
    5977                                                                                evt = evt.data.$;
     
    103121                                                unload : function( holderElement )
    104122                                                {
    105123                                                        textarea = null;
     124
     125                                                        if ( onResize )
     126                                                                editor.removeListener( 'resize', onResize );
    106127                                                },
    107128
    108129                                                focus : function()
  • _source/plugins/wysiwygarea/plugin.js

     
    149149
    150150                                                if ( CKEDITOR.env.ie )
    151151                                                {
     152                                                        if ( CKEDITOR.env.version < 8 )
     153                                                                iframe.setStyle( 'position', 'absolute' );
     154
    152155                                                        if ( isCustomDomain )
    153156                                                        {
    154157                                                                // The document domain must be set within the src
     
    193196                                                        // Accessibility label for IE.
    194197                                                        var fieldset = CKEDITOR.dom.element.createFromHtml(
    195198                                                                '<fieldset style="height:100%' +
    196                                                                         ( CKEDITOR.env.quirks ? ';position:absolute' : '' ) +
     199                                                                        ( CKEDITOR.env.quirks ? ';position:relative' : '' ) +
    197200                                                                '">' +
    198201                                                                        '<legend style="position:absolute;top:-1000px">' +
    199202                                                                                CKEDITOR.tools.htmlEncode( accTitle ) +
     
    305308                                                        {
    306309                                                                mainElement = holderElement;
    307310
     311                                                                if ( CKEDITOR.env.ie && ( CKEDITOR.env.quirks || CKEDITOR.env.version < 8 ) )
     312                                                                        holderElement.setStyle( 'position', 'relative' );
     313
    308314                                                                // Create the iframe at load for all browsers
    309315                                                                // except FF and IE with custom domain.
    310316                                                                if ( !isCustomDomain || !CKEDITOR.env.gecko )
  • _source/skins/v2/mainui.css

     
    5151{
    5252        font-family: 'Courier New' , Monospace;
    5353        font-size: small;
     54        background-color: #fff;
    5455        white-space: pre;
    55         background-color: #fff;
    5656}
     57
     58.cke_skin_v2 .cke_browser_iequirks textarea.cke_source
     59{
     60        /* For IE6+Quirks only */
     61        _white-space: normal;
     62}
  • _source/themes/default/theme.js

     
    5555                                        ' title="', ( CKEDITOR.env.gecko ? ' ' : '' ), '"' +
    5656                                        ' tabindex="' + tabIndex + '">' +
    5757                                '<span class="' , CKEDITOR.env.cssClass, ' cke_', editor.lang.dir, '">' +
    58                                         '<table class="cke_editor" border="0" cellspacing="0" cellpadding="0" style="width:', width, ';height:', height, '"><tbody>' +
    59                                                 '<tr', topHtml          ? '' : ' style="display:none"', '><td id="cke_top_'             , name, '" class="cke_top">'            , topHtml               , '</td></tr>' +
    60                                                 '<tr', contentsHtml     ? '' : ' style="display:none"', '><td id="cke_contents_', name, '" class="cke_contents" style="height:100%">'   , contentsHtml  , '</td></tr>' +
    61                                                 '<tr', bottomHtml       ? '' : ' style="display:none"', '><td id="cke_bottom_'  , name, '" class="cke_bottom">'         , bottomHtml    , '</td></tr>' +
     58                                        '<table class="cke_editor" border="0" cellspacing="0" cellpadding="0" style="width:', width, '"><tbody>' +
     59                                                '<tr', topHtml          ? '' : ' style="display:none"', '><td id="cke_top_'             , name, '" class="cke_top">'    , topHtml               , '</td></tr>' +
     60                                                '<tr', contentsHtml     ? '' : ' style="display:none"', '><td id="cke_contents_', name, '" class="cke_contents" style="height:', height, '">', contentsHtml, '</td></tr>' +
     61                                                '<tr', bottomHtml       ? '' : ' style="display:none"', '><td id="cke_bottom_'  , name, '" class="cke_bottom">' , bottomHtml    , '</td></tr>' +
    6262                                        '</tbody></table>' +
    6363                                        //Hide the container when loading skins, later restored by skin css.
    6464                                        '<style>.', editor.skinClass, '{visibility:hidden;}</style>' +
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy