Opened 9 years ago
Closed 9 years ago
#13594 closed Bug (duplicate)
editor.resize(...) not working for CSS size units
Reported by: | loeing | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.0 |
Keywords: | Cc: |
Description (last modified by )
When the ckeditor.resize(...) function is run with any of the CSS size units such as em, rem and %, the size of the editor doesn't change.
So ckeditor.resize(100, 100)
works and so does ckeditor.resize('100px', '100px')
but ckeditor.resize('100em', '100em')
doesn't.
Edit: I persionally could not get it working with any CSS unit, even px.
Change History (2)
comment:1 Changed 9 years ago by
Keywords: | resize removed |
---|---|
Status: | new → confirmed |
Version: | 4.5.1 → 3.0 |
comment:2 Changed 9 years ago by
Description: | modified (diff) |
---|---|
Resolution: | → duplicate |
Status: | confirmed → closed |
Summary: | editor.resize(...) not working for CSS size units other than px → editor.resize(...) not working for CSS size units |
I have tested below code and here are the results:
First of all results in CKE 3.6.x and 4.x are consistent. It seems that only integer values or plain strings, without any CSS units, work.
This contadicts to what documentation says: http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-resize, http://docs.ckeditor.com/#!/guide/dev_resize.
We need to either fix the docs or code.