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

AutoResizeHeight on pasteHtml

3 Answers 60 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Angie
Top achievements
Rank 1
Angie asked on 01 Nov 2017, 07:30 PM

I am inserting content into the RadEditor from a custom image upload dialog. The paste code does not properly resize the Editor height. The dialog window automatically closes, and the pasted content overflows down the page rather than being contained in the editor. Once I click into the editor area, it resizes properly.

Is there a way to trigger recognition of the new content via javascript?  Or fake a click into the content area?  

Thank you.

 

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 02 Nov 2017, 09:11 AM
Hello Angie,

You can try the setFocus, setActive and editor.get_contentArea().focus() methods to set the focus inside the content area on the client.

If this does not solve the problem, please open a support ticket and provide a simple runnable reproduction problem along with sample content for paste.

Kind Regards,
Rumen
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Angie
Top achievements
Rank 1
answered on 09 Nov 2017, 05:19 PM
Thank you, Rumen.  I have submitted a support ticket on this issue.
0
Rumen
Telerik team
answered on 10 Nov 2017, 03:53 PM
Hi,

I have already answered the support ticket.

My advice was to use the built-in functionality of RadEditor to create a custom dialog or to use the set_mode(1) method to resize the content area.

Kind Regards,
Rumen
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Editor
Asked by
Angie
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Angie
Top achievements
Rank 1
Share this question
or