X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fthemes%2Fdefault%2Ftheme.js;h=669aeb36a402da2d513a0e131b0b3653b34e597b;hb=614511639979907ceb0da3614122a4d8eb963ad4;hp=1e077d46d0d5517181d9e82d5c18aff134581066;hpb=055b6b0792ce7dc53d47af606b367c04b927c2ab;p=ckeditor.git diff --git a/_source/themes/default/theme.js b/_source/themes/default/theme.js index 1e077d4..669aeb3 100644 --- a/_source/themes/default/theme.js +++ b/_source/themes/default/theme.js @@ -3,6 +3,11 @@ Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ +/** + * @name CKEDITOR.theme + * @class + */ + CKEDITOR.themes.add( 'default', (function() { function checkSharedSpace( editor, spaceName ) @@ -22,7 +27,7 @@ CKEDITOR.themes.add( 'default', (function() // Creates an HTML structure that reproduces the editor class hierarchy. var html = '' + - '' + + '' + '' + '' + '' + @@ -65,7 +70,7 @@ CKEDITOR.themes.add( 'default', (function() return container; } - return { + return /** @lends CKEDITOR.theme */ { build : function( editor, themePath ) { var name = editor.name, @@ -113,8 +118,7 @@ CKEDITOR.themes.add( 'default', (function() var container = CKEDITOR.dom.element.createFromHtml( [ '' + 'X' + '
' + - '' + + '' + + '' + '' + - '' + - '' + + '' + + '' + + '' + + '' + + '' + '' + '
' + '
' + @@ -222,7 +230,7 @@ CKEDITOR.themes.add( 'default', (function() close : close, tabs : body.getChild( 2 ), contents : body.getChild( [ 3, 0, 0, 0 ] ), - footer : body.getChild( 4 ) + footer : body.getChild( [ 3, 0, 1, 0 ] ) } }; }, @@ -285,10 +293,6 @@ CKEDITOR.editor.prototype.getThemeSpace = function( spaceName ) */ CKEDITOR.editor.prototype.resize = function( width, height, isContentHeight, resizeInner ) { - var numberRegex = /^\d+$/; - if ( numberRegex.test( width ) ) - width += 'px'; - var container = this.container, contents = CKEDITOR.document.getById( 'cke_contents_' + this.name ), outer = resizeInner ? container.getChild( 1 ) : container; @@ -297,7 +301,8 @@ CKEDITOR.editor.prototype.resize = function( width, height, isContentHeight, res // WEBKIT BUG: Webkit requires that we put the editor off from display when we // resize it. If we don't, the browser crashes! CKEDITOR.env.webkit && outer.setStyle( 'display', 'none' ); - outer.setStyle( 'width', width ); + // Set as border box width. (#5353) + outer.setSize( 'width', width, true ); if ( CKEDITOR.env.webkit ) { outer.$.offsetWidth;