Changeset 4668
- Timestamp:
- 12/11/09 12:30:16 (3 years ago)
- Location:
- CKEditor/trunk
- Files:
-
- 11 edited
-
CHANGES.html (modified) (1 diff)
-
_source/plugins/dialog/plugin.js (modified) (1 diff)
-
_source/plugins/image/dialogs/image.js (modified) (1 diff)
-
_source/skins/kama/dialog.css (modified) (2 diffs)
-
_source/skins/kama/mainui.css (modified) (1 diff)
-
_source/skins/kama/skin.js (modified) (2 diffs)
-
_source/skins/office2003/dialog.css (modified) (2 diffs)
-
_source/skins/office2003/skin.js (modified) (2 diffs)
-
_source/skins/v2/dialog.css (modified) (2 diffs)
-
_source/skins/v2/skin.js (modified) (2 diffs)
-
_source/themes/default/theme.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/CHANGES.html
r4667 r4668 159 159 <li><a href="http://dev.fckeditor.net/ticket/4543">#4543</a> : Fixed unable to move cursor between table and hr.</li> 160 160 <li><a href="http://dev.fckeditor.net/ticket/4764">#4764</a> : Fixed wrong exception message when CKEDITOR.editor::append to non-existence element.</li> 161 <li><a href="http://dev.fckeditor.net/ticket/4521">#4521</a> : Fixed dialog layout in IE6/7 may have scroll-bar and other weird effects.</li> 161 162 <li>Updated the following language files:<ul> 162 163 <li><a href="http://dev.fckeditor.net/ticket/3947">#3947</a> : Arabic;</li> -
CKEditor/trunk/_source/plugins/dialog/plugin.js
r4635 r4668 810 810 expand : !!contents.expand, 811 811 padding : contents.padding, 812 style : contents.style || 'width: 100%; height: 100%;'812 style : contents.style || 'width: 100%;' 813 813 }, pageHtml ); 814 814 -
CKEditor/trunk/_source/plugins/image/dialogs/image.js
r4441 r4668 443 443 this.getDialog().dontResetSize = true; 444 444 445 // In IE7 the dialog is being rendered improperly when loading 446 // an image with a long URL. So we need to delay it a bit. (#4122) 447 setTimeout( function() 448 { 449 field.setValue( url ); // And call this.onChange() 450 // Manually set the initial value.(#4191) 451 field.setInitValue(); 452 field.focus(); 453 }, 0 ); 445 field.setValue( url ); // And call this.onChange() 446 // Manually set the initial value.(#4191) 447 field.setInitValue(); 448 field.focus(); 454 449 } 455 450 }, -
CKEditor/trunk/_source/skins/kama/dialog.css
r4571 r4668 8 8 { 9 9 visibility: visible; 10 } 11 12 /* Force Gecko to consider table as positioned */ 13 .cke_skin_kama table.cke_dialog.cke_browser_gecko 14 { 15 display:block; 10 16 } 11 17 … … 19 25 -webkit-border-radius: 5px; 20 26 border-radius: 5px; 27 28 /* 'cke_dialog' element has been fixed positioned in all but IE6, while we 29 need it to be positioned to hold e.g. close button. */ 30 position: relative; 31 _position: static; 21 32 } 22 33 -
CKEditor/trunk/_source/skins/kama/mainui.css
r3927 r4668 7 7 { 8 8 display: block; 9 _display: inline-block;10 9 } 11 10 -
CKEditor/trunk/_source/skins/kama/skin.js
r4519 r4668 212 212 height = data.height, 213 213 dialog = data.dialog, 214 contents = dialog.parts.contents, 215 standardsMode = !CKEDITOR.env.quirks; 214 contents = dialog.parts.contents; 216 215 217 216 if ( data.skin != 'kama' ) … … 219 218 220 219 contents.setStyles( 221 ( CKEDITOR.env.ie || ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 ) ) ? // IE && FF2 222 { 223 width : width + 'px', 224 height : height + 'px' 225 } 226 : 227 { 228 // To avoid having scrollbars in the dialogs, we're 229 // (for now) using the "min-xxx" properties, for 230 // browsers which well support it (#3878). 231 'min-width' : width + 'px', 232 'min-height' : height + 'px' 233 }); 234 235 if ( !CKEDITOR.env.ie ) 236 return; 220 { 221 width : width + 'px', 222 height : height + 'px' 223 }); 237 224 238 225 // Fix the size of the elements which have flexible lengths. 239 226 setTimeout( function() 240 227 { 241 var body = contents.getParent(),242 innerDialog = body.getParent();228 var innerDialog = dialog.parts.dialog.getChild( [ 0, 0, 0 ] ), 229 body = innerDialog.getChild( 0 ); 243 230 244 231 // tc -
CKEditor/trunk/_source/skins/office2003/dialog.css
r4571 r4668 10 10 } 11 11 12 /* Force Gecko to consider table as positioned */ 13 .cke_skin_office2003 table.cke_dialog.cke_browser_gecko 14 { 15 display:block; 16 } 17 12 18 .cke_skin_office2003 .cke_dialog_body 13 19 { … … 16 22 margin-top: 2px; 17 23 margin-bottom: 20px; 24 z-index: 1; 25 26 /* 'cke_dialog' element has been fixed positioned in all but IE6, while we 27 need it to be positioned to hold e.g. close button. */ 18 28 position: relative; 19 z-index: 1;29 _position: static; 20 30 } 21 31 -
CKEditor/trunk/_source/skins/office2003/skin.js
r3983 r4668 32 32 height = data.height, 33 33 dialog = data.dialog, 34 standardsMode = !CKEDITOR.env.quirk;34 contents = dialog.parts.contents; 35 35 36 36 if ( data.skin != 'office2003' ) 37 37 return; 38 38 39 dialog.parts.contents.setStyles(39 contents.setStyles( 40 40 { 41 41 width : width + 'px', … … 49 49 var fixSize = function() 50 50 { 51 var content = dialog.parts.contents, 52 body = content.getParent(), 53 innerDialog = body.getParent(); 51 var innerDialog = dialog.parts.dialog.getChild( [ 0, 0, 0 ] ), 52 body = innerDialog.getChild( 0 ); 54 53 55 54 // tc -
CKEditor/trunk/_source/skins/v2/dialog.css
r4571 r4668 10 10 } 11 11 12 /* Force Gecko to consider table as positioned */ 13 .cke_skin_v2 table.cke_dialog.cke_browser_gecko 14 { 15 display:block; 16 } 17 12 18 .cke_skin_v2 .cke_dialog_body 13 19 { … … 16 22 margin-top: 2px; 17 23 margin-bottom: 20px; 24 z-index: 1; 25 26 /* 'cke_dialog' element has been fixed positioned in all but IE6, while we 27 need it to be positioned to hold e.g. close button. */ 18 28 position: relative; 19 z-index: 1; 29 _position: static; 30 20 31 } 21 32 -
CKEditor/trunk/_source/skins/v2/skin.js
r3342 r4668 32 32 height = data.height, 33 33 dialog = data.dialog, 34 standardsMode = !CKEDITOR.env.quirk;34 contents = dialog.parts.contents; 35 35 36 36 if ( data.skin != 'v2' ) 37 37 return; 38 38 39 dialog.parts.contents.setStyles(39 contents.setStyles( 40 40 { 41 41 width : width + 'px', … … 49 49 setTimeout( function() 50 50 { 51 var content = dialog.parts.contents, 52 body = content.getParent(), 53 innerDialog = body.getParent(); 51 var innerDialog = dialog.parts.dialog.getChild( [ 0, 0, 0 ] ), 52 body = innerDialog.getChild( 0 ); 54 53 55 54 // tc -
CKEditor/trunk/_source/themes/default/theme.js
r4440 r4668 103 103 ' lang="', editor.langCode, '"' + 104 104 '>' + 105 106 '<div class="cke_dialog', ' ' + CKEDITOR.env.cssClass, 105 '<table class="cke_dialog', ' ' + CKEDITOR.env.cssClass, 107 106 ' cke_', editor.lang.dir, '" style="position:absolute">' + 107 '<tr><td>' + 108 108 '<div class="%body">' + 109 109 '<div id="%title#" class="%title"></div>' + … … 112 112 '</div>' + 113 113 '<div id="%tabs#" class="%tabs"></div>' + 114 '<div id="%contents#" class="%contents"></div>' + 114 '<table class="%contents"><tr>' + 115 '<td id="%contents#" class="%contents"></td>' + 116 '</tr></table>' + 115 117 '<div id="%footer#" class="%footer"></div>' + 116 118 '</div>' + … … 123 125 '<div id="%bc#" class="%bc"></div>' + 124 126 '<div id="%br#" class="%br"></div>' + 125 '</div>', 127 '</td></tr>' + 128 '</table>', 126 129 127 130 //Hide the container when loading skins, later restored by skin css. … … 133 136 .replace( /%/g, 'cke_dialog_' ) ); 134 137 135 var body = element.getChild( [ 0, 0 ] ); 138 var body = element.getChild( [ 0, 0, 0, 0, 0 ] ), 139 title = body.getChild( 0 ), 140 close = body.getChild( 1 ); 136 141 137 142 // Make the Title and Close Button unselectable. 138 body.getChild( 0 ).unselectable();139 body.getChild( 1 ).unselectable();143 title.unselectable(); 144 close.unselectable(); 140 145 141 146 … … 145 150 { 146 151 dialog : element.getChild( 0 ), 147 title : body.getChild( 0 ),148 close : body.getChild( 1 ),152 title : title, 153 close : close, 149 154 tabs : body.getChild( 2 ), 150 contents : body.getChild( 3),155 contents : body.getChild( [ 3, 0, 0, 0 ] ), 151 156 footer : body.getChild( 4 ) 152 157 }
Note: See TracChangeset
for help on using the changeset viewer.
