Opened 13 years ago
Last modified 9 years ago
#8092 confirmed Bug
CKEDITOR.editor.resize - Invalid documentation
Reported by: | Michael Camden | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.0 |
Keywords: | IBM | Cc: | mcamden@…, Irina, Satya Minnekanti |
Description
The documentation for this method states...
{Number|String} width
The new width. It can be an pixels integer or a CSS size value.
{Number|String} height
The new height. It can be an pixels integer or a CSS size value.
The method unfortunately only accepts a number parameter however. Resize calls the method setSize, here is the setSize method:
CKEDITOR.dom.element.prototype.setSize = function( type, size, isBorderBox )
{
if ( typeof size == 'number' ) {
if ( isBorderBox && !( CKEDITOR.env.ie && CKEDITOR.env.quirks ) )
size -= marginAndPaddingSize.call( this, type );
this.setStyle( type, size + 'px' );
}
};
As you can see, it only accepts a number as it's parameter.
Change History (4)
comment:1 Changed 13 years ago by
Keywords: | invalid documentation editor.resize removed |
---|---|
Status: | new → confirmed |
Version: | 3.6 → 3.0 |
comment:2 Changed 9 years ago by
comment:3 Changed 9 years ago by
Cc: | Irina Satya Minnekanti added |
---|---|
Keywords: | IBM added |
#13594 was marked as duplicate.
We need to decide whether this is invalid code or invalid documentation.