Ticket #3387: 3387.patch
File 3387.patch, 7.2 KB (added by , 16 years ago) |
---|
-
_source/plugins/elementspath/plugin.js
25 25 } 26 26 }; 27 27 28 var emptyHtml = '<span class="cke_empty"> </span>'; 29 28 30 CKEDITOR.plugins.add( 'elementspath', 29 31 { 30 32 requires : [ 'selection' ], … … 47 49 editor.on( 'themeSpace', function( event ) 48 50 { 49 51 if ( event.data.space == 'bottom' ) 50 event.data.html += '<div id="' + spaceId + '" class="cke_path"> <span class="cke_empty"> </span></div>';52 event.data.html += '<div id="' + spaceId + '" class="cke_path">' + emptyHtml + '</div>'; 51 53 }); 52 54 53 55 editor.on( 'selectionChange', function( ev ) … … 102 104 element = element.getParent(); 103 105 } 104 106 105 getSpaceElement().setHtml( html.join('') );107 getSpaceElement().setHtml( html.join('') + emptyHtml ); 106 108 }); 107 109 108 110 editor.on( 'contentDomUnload', function() 109 111 { 110 getSpaceElement().setHtml( '<br>');112 getSpaceElement().setHtml( emptyHtml ); 111 113 }); 112 114 113 115 editor.addCommand( 'elementsPathFocus', commands.toolbarFocus ); -
_source/plugins/sourcearea/plugin.js
18 18 19 19 editor.on( 'editingBlockReady', function() 20 20 { 21 var textarea; 21 var textarea, 22 onResize; 22 23 23 24 editor.addMode( 'source', 24 25 { 25 26 load : function( holderElement, data ) 26 27 { 28 if ( CKEDITOR.env.ie && CKEDITOR.env.version < 8 ) 29 holderElement.setStyle( 'position', 'relative' ); 30 27 31 // Create the source area <textarea>. 28 32 textarea = new CKEDITOR.dom.element( 'textarea' ); 29 33 textarea.setAttributes( … … 39 43 outline : 'none', 40 44 'text-align' : 'left' }); 41 45 42 // The textarea height/width='100%' doesn't43 // constraint to the 'td' in IE strick mode44 46 if ( CKEDITOR.env.ie ) 45 47 { 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 } 49 68 } 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 56 70 { 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). 57 75 textarea.on( 'mousedown', function( evt ) 58 76 { 59 77 evt = evt.data.$; … … 103 121 unload : function( holderElement ) 104 122 { 105 123 textarea = null; 124 125 if ( onResize ) 126 editor.removeListener( 'resize', onResize ); 106 127 }, 107 128 108 129 focus : function() -
_source/plugins/wysiwygarea/plugin.js
149 149 150 150 if ( CKEDITOR.env.ie ) 151 151 { 152 if ( CKEDITOR.env.version < 8 ) 153 iframe.setStyle( 'position', 'absolute' ); 154 152 155 if ( isCustomDomain ) 153 156 { 154 157 // The document domain must be set within the src … … 193 196 // Accessibility label for IE. 194 197 var fieldset = CKEDITOR.dom.element.createFromHtml( 195 198 '<fieldset style="height:100%' + 196 ( CKEDITOR.env.quirks ? ';position: absolute' : '' ) +199 ( CKEDITOR.env.quirks ? ';position:relative' : '' ) + 197 200 '">' + 198 201 '<legend style="position:absolute;top:-1000px">' + 199 202 CKEDITOR.tools.htmlEncode( accTitle ) + … … 305 308 { 306 309 mainElement = holderElement; 307 310 311 if ( CKEDITOR.env.ie && ( CKEDITOR.env.quirks || CKEDITOR.env.version < 8 ) ) 312 holderElement.setStyle( 'position', 'relative' ); 313 308 314 // Create the iframe at load for all browsers 309 315 // except FF and IE with custom domain. 310 316 if ( !isCustomDomain || !CKEDITOR.env.gecko ) -
_source/skins/v2/mainui.css
51 51 { 52 52 font-family: 'Courier New' , Monospace; 53 53 font-size: small; 54 background-color: #fff; 54 55 white-space: pre; 55 background-color: #fff;56 56 } 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
55 55 ' title="', ( CKEDITOR.env.gecko ? ' ' : '' ), '"' + 56 56 ' tabindex="' + tabIndex + '">' + 57 57 '<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">' 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">' 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>' + 62 62 '</tbody></table>' + 63 63 //Hide the container when loading skins, later restored by skin css. 64 64 '<style>.', editor.skinClass, '{visibility:hidden;}</style>' +