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

Editor returning different HTML server side and clients side

1 Answer 29 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Simon thompson
Top achievements
Rank 1
Simon thompson asked on 05 May 2010, 05:04 PM
I have a problem where the string being returned by
server side : MarkingEditor.content
client side : var edcon = $find("<%= MarkingEditor.ClientID %>").get_html(true);

if the content is say
abc <font size=6>xyz</font>

server side has quotes so the returned string is   "abc <font size='6'>xyz</font>"
client side no quotes the returned string is  "abc <font size=6>xyz</font>"

When pasting from word quotes and hyphens are also different - server code : code 150, client : code 8211  (&#8211 being a hypen)

I have diabled all content filters

This is the case even thought the editors content is set from the database witht he server side values, when posting back different ?

HOW CAN I GET BOTH SIDES  TO RETURN THE SAME VALUE (which is important for reason i will not go into here)
Using Q1 2010 RadControl AJAX

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 10 May 2010, 02:34 PM
Hi Simon,

I made a test with the provided content and I was unable to reproduce the problem. I captured a video demonstrating my test which you can see at: http://screencast.com/t/N2IzZWY4Nzk.

As to the hyphens, please, see the following two forum posts on the subject:
Paste from Word - different behaviour in ASP.NET and SharePoint
and
MS Word Smart Quotes - the content filter is made for RadEditor Classic.

 You can see how to create a content filter for RadEditor for ASP.NET AJAX in this live example:
http://demos.telerik.com/aspnet-ajax/editor/examples/contentfilters/defaultcs.aspx

and this KB article: 

http://www.telerik.com/support/kb/aspnet-ajax/editor/converting-unicode-symbols-to-numeric-html-entities-using-a-content-filter.aspx

Best regards,
Rumen
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
Editor
Asked by
Simon thompson
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or