Ticket #9064 (closed Bug: invalid)

Opened 22 months ago

Last modified 22 months ago

resize_maxWidth and resize_maxHeight not working

Reported by: Héctor Owned by:
Priority: Normal Milestone:
Component: General Version: 3.6.3
Keywords: Cc:

Description

The resize options (resize_maxWidth and resize_maxHeight) don't work as expected, and they are completely broken in IE8.

Start a CKEditor instance with these options (or just one of them):

CKEDITOR.replace( 'editor1', {

"resize_maxWidth": "700px", "resize_maxHeight": "600px"

});

In IE8, an invalid argument error appears as soon as the user tries to resize the editor.

In other browsers no error appears but the editor doesn't behave as expected: if resize_maxWidth is specified it's impossible to resize the editor horizontally, if resize_maxHeight is specified the editor cant' be resized vertically.

I have reproduced this in the latest nightly build.

Change History

comment:1 Changed 22 months ago by alfonsoml

  • Status changed from new to closed
  • Resolution set to invalid

The docs state that those values must be numeric, not strings http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.resize_maxHeight

and remember that there's a default value of 750 for resize_minWidth, so if you don't change that you'll get an editor that can't be resized horizontaly.

comment:2 Changed 22 months ago by Héctor

Sorry for the mistake, Alfonso. I got confused by the fact that width uses a CSS string, my bad.

Keep up the good work!

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy