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

Using IE9 radeditor adds junk code

3 Answers 107 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 08 May 2013, 11:33 AM
I have had multiple complaints from clients about this.  The problem is that when you use mainly IE9 junk code will be added to the radeditor just by typing.  I have even reproduced this in the RadEditor Demo just click into the ul (which by the way takes multiple clicks) and then press the backspace key.  As soon as you do that you should see that the editor adds &nbsp;&nbsp; (viewed by switching to source) for apparently no reason it didn't exist before pressing the backspace key and only exits after pressing the backspace key.  In my editor I sometimes get 8 or 9 &nbsp; when pressing the backspace key.  Also I have seen (usually when there is an unclosed tag) it adding between 3-8 </div> or closing tags when only one is necessary. However that is on save and then looking at the code in the editor again.  I am also doing a Server.HtmlEncode(RadEditor1.Content) and storing that in the database.  Let me know if there is a fix for this other than forcing IE8 compatibility mode.

3 Answers, 1 is accepted

Sort by
0
Misho
Telerik team
answered on 13 May 2013, 10:21 AM
Hi Kevin,
Thank you for contacting us.
First of all regarding the unordered list selection issue in IE. The content area of RadEditor is actually nothing else but a standard editable iframe/div element, which uses the rich text editing engine of the used browser to render tags. That's why you could observe the same browser behavior with the need of multiple clicking ul elements also within the editable iframe page I've attached without RadEditor.
Here is a video showing my test:

http://screencast.com/t/uhguTZ3WLUD

Regarding the redundand &nbsp; issue you are experiencing, I tried to replicate it  on our site but no avail.
I'm attaching a video demonstrating the test.

http://screencast.com/t/hCfHRODVsaK

Since it sounds to be a quite annoying issue and I am willing to help you resolve it, could you please provide us with more detailed reproduction steps or a video and let me know what I am missing in order to recreate your scenario?

Looking forward to your reply.

Kind regards,
Misho
the Telerik team
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 their blog feed now.
0
Kevin
Top achievements
Rank 1
answered on 13 May 2013, 09:09 PM
sorry to be a little more specific.  Take the cursor and place it at the beginning of the sentence in the ul then click backspace like you are going to delete the li or move the text from the one li up to the one above it.  ie.

  • Testing 123
  • Testing 456

So in IE9 you would put the cursor in front of the capital T in Testing 456 and then click the backspace button on your keyboard.   Do this once and then switch to html view and look at the code where the li is.  You will also see that it visibly moves it in the editor as well.  This only appears to be a minor issue but like I said above I have seen it add 8 or 9 of those junk tags in the code for no reason other than I hit the backspace.

0
Misho
Telerik team
answered on 16 May 2013, 03:52 PM
Hi,

I've tested the issue and are confirming the it is reproducible in case there are white spaces with a content similat to:

<ul>
    <li>Test1
  </li>
       <li>
      Test2</li>
</ul>


I've logged the problem in our Feedback portal with ID 48567, where you could follow it, comment and vote.

What I can suggest you at this moment is that you try to clean your content from the white spaces so the redundant nbsps would not appear.

As a token of gratitude for your report I have also updated your Telerik points accordingly.


Kind regards,
Misho
the Telerik team
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 their blog feed now.
Tags
Editor
Asked by
Kevin
Top achievements
Rank 1
Answers by
Misho
Telerik team
Kevin
Top achievements
Rank 1
Share this question
or