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

Issue with Iframe mode and HTML tag

3 Answers 110 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 18 Dec 2013, 09:52 PM
Hi,

I believe I have found a bug in the RadEditor and I can reproduce it in the Editor demo on your demo site. I have reproduced it in Firefox and Chrome, although they give different javascript errors. Here what you can do to reproduce the error:

1. Go to the Overview of the Rad Editor demo
2. Switch the editor to HTML mode
3. Add <html> as the first line before "<h2 class="titletext">......"
4. Switch to Design mode
5. Uncheck any of the checkboxes under "Change Edit Mode"

When the AJAX callback is done, a javascript error will appear and your change will not be displayed (if you unselected "HTML Mode", the HTML tab will still be on the editor).

In Firefox, the error is:   TypeError: c._events is undefined
In Chrome, the error is:  TypeError: Cannot read property 'keypress' of undefined.

this appears to only be an issue while the ContentAreaMode is set to IFrame. I could not reproduce it with the mode set to Div. However, we have a situation where the mode must be set to IFrame to achieve the features weneed, so simply switching the modes will not work for us.

We are currently using version 2013.1114.40 and experience this issue. We recently upgraded from 2012.1.0320.40 where we did not experience this problem.

Any help would be greatly appreciated. 

3 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 21 Dec 2013, 12:44 PM
Hello David,

I tried to reproduce the problem with this live example, but to no avail. Please get back to me with the exact HTML content and the exact steps leading to the described problem. It would be appreciated if you are able to provide a screencast of the steps, so that I could be sure of the exact scenario with which this behavior occurs. 

Regards,
Ianko
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Dave
Top achievements
Rank 1
answered on 06 Jan 2014, 07:04 PM
Ianko,

I followed my steps on the live example you provided and got the error message in chrome. After I followed my first 4 steps, whenever I unchecked any of the checkboxes under "Change Edit Mode", the checkbox would uncheck, but the corresponding tab on the editor does not disappear. So follow steps 1 through 4 and then uncheck "Preview Mode". The callback will occur, the javascript error will appear and the "Preview" tab on the editor will not disappear. 

Having an <html> tag in the editor appears to be breaking the page. I have reproduced it in Chrome, Firefox and IE 9 & 10.
0
Ianko
Telerik team
answered on 09 Jan 2014, 03:04 PM
Hello David,

I can confirm that this is a bug and I brought this matter to the developer team.

We are going to investigate thoroughly this issue. As appreciation for your  report I am updating your Telerik points.

You can track the status of this task by following this feedback portal item, in which you can also vote, comment and use the provided possible solution for your project.

Regards,
Ianko
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Editor
Asked by
Dave
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Dave
Top achievements
Rank 1
Share this question
or