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

Rad editor not insert html tag in database

1 Answer 74 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Triet
Top achievements
Rank 1
Triet asked on 23 Jun 2011, 04:08 AM
Hi

I use editor insert text ( Example : <b>abcdefghr </b> ) I was format "Bold" for Text. But when i insert in Database, It remove tag HTML become "abcdefghr" not Bold.

Please help

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 24 Jun 2011, 03:22 PM
Hi Triet,

You may experience this behavior if the RadEditor's Text property is used when storing the content into the database. The Text property returns the editors content as plain text.

In order to get the content as HTML you need to use Content property. A detailed list of RadEditor's server-side properties is available in the following help article:
RadEditor Server-side API

Best wishes,
Dobromir
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Editor
Asked by
Triet
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or