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

RadEditor height issue in Chrome

2 Answers 58 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Arpita
Top achievements
Rank 1
Arpita asked on 07 Dec 2015, 10:50 AM

Hi,

 

I have upgraded Telerik dlls from 2012 to 2015 version and have a RadEditor issue inside a user control on Chrome.

This user control is placed inside a Modal popup within an Update panel on the parent page.

 

When the Radeditor is loaded, IFrame extends beyond the content body area in Design mode but it works fine in HTML mode.

If we set IFrame height to 100%, it works fine in design mode but misaligned in HTML mode(since for HTML mode Iframe height should be 0).

I have also tried to set Iframe height through javascript for different tabs but javascript function is not firing.

 

Please let me know how to resolve this issue.

 

2 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 07 Dec 2015, 12:06 PM
Hi Arpita,

When RadEditor us put into a modal popup, shown dynamically via JavaScript or moved through the DOM tree, it is expected its layout to fail.

This is a well known behavior and it is documented here—http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/troubleshooting/appearance-issues-with-initially-hidden-editor. The solution depends on the situation:
  • When RadEditor is only shown dynamically—use repaint() method to only redraw the HTML elements of the editor.


  • When moved through the DOM—use onParentNodeCnanged() method to entirely reload the editor. 

Hope that helps.

Regards,
Ianko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Arpita
Top achievements
Rank 1
answered on 11 Dec 2015, 06:22 AM

Hi Ianko,

 

Thanks for your quick response.

I was able to resolve the issue using RegisterClientScriptBlock for OnClientLoad function of RadEditor as it is placed inside an Update panel.

 

Thanks,

Arpita

 

Tags
General Discussions
Asked by
Arpita
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Arpita
Top achievements
Rank 1
Share this question
or