This is a migrated thread and some comments may be shown as answers.

Editor does not resize

2 Answers 446 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Roman
Top achievements
Rank 1
Roman asked on 08 Nov 2012, 03:50 PM
If I resize page after initial load - editor window stays unchanged.

1. How do I cause editor to resize?
2. Why isn't this happening automatically? Does this mean that this control is half-baked and is not ready for production use?

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 08 Nov 2012, 05:04 PM
Hi Roman,

By default, the Kendo Editor assumes the pixel width of the textarea element, from which it is created. You can enable automatic resizing by removing this width after initialization.

$("#editorID").closest(".k-editor").width("");

However, in this case it is advisable to set a min-width style, if none the Editor parents have one.

Regards,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
NYePiD
Top achievements
Rank 1
answered on 07 Aug 2013, 04:13 PM
Here is a simpler solution, just add a css override:
<code>
table.k-editor .k-content {
  resize: vertical;
}
</code>
Tags
Editor
Asked by
Roman
Top achievements
Rank 1
Answers by
Dimo
Telerik team
NYePiD
Top achievements
Rank 1
Share this question
or