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

Editor adding 'innerHtml' to HTML tags in IE

3 Answers 187 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jay Larson
Top achievements
Rank 1
Jay Larson asked on 21 Apr 2014, 02:42 PM
I updated the Editor control to the 2014 Q1 .NET 4.0 version. Now when we decide to bold or underline any text, the selection length will be reduced by one character each time.

We first noticed it with content in the 29k size range of markup text, but I have been able to duplicate it with less than 4k of text.

I have no special settings on the control, but have added:
ContentFilter="None"  - no change
RegisterWithScriptManager="true"   - no change

I have also noticed that in the HTML markup 'innerHtml' was added to the tags being used:
<STRONG innerHtml>T</STRONG>
​<SPAN style="TEXT-DECORATION: underline" innerHtml>E</SPAN>

This only happens in Internet Explorer version 8 - 11. Works as intended in Firefox or Chrome.

Pic 1 - Initial entry
Pic 2 - Text Selected
Pic 3 - Bold button clicked
Pic 4 - Bold button clicked again(unbolding selection)
Pic 5 - Bold button clicked again(bolding selection)
Pic 6 - Bold button clicked again(unbolding selection again)



Any ideas?

Jay




3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 22 Apr 2014, 12:21 PM
Hi Jay Larson,

Unfortunately I couldn't replicate the issue at my end. Please have a look into the sample code snippet which works fine at my end. Provide a sample code if it doesn't help.

ASPX:
<telerik:RadEditor ID="RadEditor1" runat="server" ContentFilters="None" RegisterWithScriptManager="true">
     <Content>
(1)Print w/1 Poster per month : (MULTIPLE-YEAR SERVICE RATES)
     </Content>
 </telerik:RadEditor>

Thanks,
Princy.
0
Jay Larson
Top achievements
Rank 1
answered on 22 Apr 2014, 01:17 PM
thanks for checking.

I know that it does not happen on all of the entries that we have.
The one thing that I do know is that the data in question has an abundance of non-breaking spaces. (the content editors like to format with spaces)

Is there a way I can get you the text for testing? The file attachment does not allow text.


Jay
0
Princy
Top achievements
Rank 2
answered on 23 Apr 2014, 06:40 AM
Hi Jay Larson,

Please provide a sample code where I can replicate the issue for further help.

Thanks,
Princy.
Tags
Editor
Asked by
Jay Larson
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Jay Larson
Top achievements
Rank 1
Share this question
or