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

RadEditor considering insert incorrectly

5 Answers 40 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Yogesh
Top achievements
Rank 1
Yogesh asked on 31 Jan 2014, 12:25 PM
Hi,

I am facing an issue when inserting content in RadEditor:

I have the following sample text which is loaded from database into RadEditor:
<p>This is <span class="reComment reU0" title="RadEditorUser: Save Comment: Wednesday, October 09, 2013 3:35:22 PM" author="RadEditorUser" comment="Save Comment" timestamp="1381347322127">sample content </span>content <span style="background-color: yellow;">for first line</span>; and<br />
<br />
This is <span class="reComment reU0" title="RadEditorUser: Another Comment: Wednesday, October 09, 2013 3:40:12 PM" author="RadEditorUser" comment="Another Comment" timestamp="1381347612099">sample content </span>for the <span style="background-color: yellow;">second line</span> <br />
<br /></p>


Now I start making changes in RadEditor by entering some more text in between the above 2 lines:
Content entered between 2 lines

When switching to "Html" tab in RadEditor, it generates the following Html:
<p>This is <span class="reComment reU0" title="RadEditorUser: Save Comment: Wednesday, October 09, 2013 3:35:22 PM" author="RadEditorUser" comment="Save Comment" timestamp="1381347322127">sample content </span>content <span style="background-color: yellow;">for first line</span>; and<br />
<br />
<ins class="reU0" title="Inserted by RadEditorUser on Friday, January 31, 2014 5:48:07 PM" cite="RadEditorUser" timestamp="1391170687573"></ins><u><span style="color: #ff9933;">C<ins class="reU0" title="Inserted by RadEditorUser on Friday, January 31, 2014 5:48:08 PM" cite="RadEditorUser" timestamp="1391170688574">ontent entered between 2 lines</ins></span></u><br />
<br />
This is <span class="reComment reU0" title="RadEditorUser: Another Comment: Wednesday, October 09, 2013 3:40:12 PM" author="RadEditorUser" comment="Another Comment" timestamp="1381347612099">sample content </span>for the <span style="background-color: yellow;">second line</span> <br />
<br /></p>


Note here that "C" is considered as underline, and rest of the content "ontent entered between 2 lines" is considered as insert, whereas I have inserted all characters.

This causes an issue when the content is exported to Word format, since it omits the "C" as part of insert.

Can you please let me know the fix for this issue?

Thanks

5 Answers, 1 is accepted

Sort by
0
Yogesh
Top achievements
Rank 1
answered on 03 Feb 2014, 04:49 AM
Hi,

Can you please give an update on this?

Thanks.
0
Yogesh
Top achievements
Rank 1
answered on 04 Feb 2014, 12:44 AM
Hello,

Do you have an update?

Thank you.
0
Nikolay
Telerik team
answered on 05 Feb 2014, 09:30 AM
Hi,

I have tried to reproduce the problem but to no avail. Here is the screencast which shows my test.

In order to find the problem, could you provide the version of the Telerik UI for ASP.NET AJAX controls, browser version and the exact steps to reproduce the issue?

Regards,
Nikolay
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 UI for ASP.NET AJAX, subscribe to the blog feed now.
0
Yogesh
Top achievements
Rank 1
answered on 06 Feb 2014, 05:29 AM
Hi Nikolay,

Thanks for the response.

Here are the details:

Telerik.Web.UI version: 2013.2.717.40
(I cannot attach the assembly since only images can be attached in the forum post.)



Browser:
1. Internet Explorer version 7.0.6002.18005
2. Internet Explorer version 8.0.6001.18702CO



Steps to reproduce the defect:
1. Launch an ASP.NET web page which has the RadEditor control.

2. Switch to the "HTML" tab in the control, delete any previous content and paste the following content:
<p>This is <span class="reComment reU0" title="RadEditorUser: Save Comment: Wednesday, October 09, 2013 3:35:22 PM" author="RadEditorUser" comment="Save Comment" timestamp="1381347322127">sample content </span>content <span style="background-color: yellow;">for first line</span>; and<br />
<br />
This is <span class="reComment reU0" title="RadEditorUser: Another Comment: Wednesday, October 09, 2013 3:40:12 PM" author="RadEditorUser" comment="Another Comment" timestamp="1381347612099">sample content </span>for the <span style="background-color: yellow;">second line</span> <br />
<br /></p>


3. Switch to the "Design" tab. It will display 2 lines of text with a gap between them.

4. There are 2 ways the content can be manipulated:
a. Click in the gap between the 2 lines and start typing the following content:
Sample content between 2 lines

b. Click at the end of the first line, then press ENTER key to enter a line break(s) and start typing the following content:
Sample content between 2 lines

5. Switch to the "HTML" tab. It displays the following content:
<p>This is <span class="reComment reU0" title="RadEditorUser: Save Comment: Wednesday, October 09, 2013 3:35:22 PM" timestamp="1381347322127" comment="Save Comment" author="RadEditorUser">sample content </span>content <span style="background-color: yellow;">for first line</span>; and<br />
<ins class="reU0" title="Inserted by RadEditorUser on Thursday, February 06, 2014 10:50:59 AM" cite="RadEditorUser" timestamp="1391664059475"></ins><u><span style="color: #ff9933;">S<ins class="reU0" title="Inserted by RadEditorUser on Thursday, February 06, 2014 10:51:00 AM" cite="RadEditorUser" timestamp="1391664060521">ample content between 2 lines</ins></span></u><br />
This is <span class="reComment reU0" title="RadEditorUser: Another Comment: Wednesday, October 09, 2013 3:40:12 PM" timestamp="1381347612099" comment="Another Comment" author="RadEditorUser">sample content </span>for the <span style="background-color: yellow;">second line</span> <br />
<br />
</p>


Note: If you do steps 4a or 4b by pasting text (instead of typing), then it is correctly interpreted. i.e. all content is considered as part of insert.

Thanks.

0
Nikolay
Telerik team
answered on 10 Feb 2014, 05:40 PM
Hi,

Thank you for the detailed description.

I have investigated the issue but due its complexity, I can not provide you with any workaround.

I have logged the issue into our system and here is the feedback item where you can track its status and vote for it.

In Q1 2014 which will be released at the end of February 2014, we will improve the TrackChanges commands tracking functionality and we will probably consider the keyboard support for the planing for Q2 2014.

As a small token of gratitude for reporting this issue I am updating your Telerik points.

Please excuse us for the caused inconvenience.

Regards,
Nikolay
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 UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Editor
Asked by
Yogesh
Top achievements
Rank 1
Answers by
Yogesh
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or