More in this section
Forums / General Discussions / How to acknowledge carriage return in RadEditor?

How to acknowledge carriage return in RadEditor?

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Aamir Ali Ansari
    Aamir Ali Ansari avatar
    1 posts
    07 Jun 2010
    25 Jul 2010
    Link to this post
    I am importing some text into RadEditor in two ways through my application

    1- Fetching contents from database.and populating RadEditor's Contents property.
    2- Reading Text Data from File through IO streams and populating Contents.

    Unfortunately the carriage returns and line feeds are not transformed properly and the whole text is combined into a single line wrapped style which is hard to manage. The same issue is when I need to record these contents to database.

    Note: Contents are usually HTML source code

    Any idea what is the way forward??

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    26 Jul 2010
    Link to this post
    Hi Aamir Ali,

    The RadEditor content is returned as HTML and this is how it should be imported in your database and then retrieved, otherwise you will loose the formatting over the text and all images that have been imported.

    Ivan Dimitrov
    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
2 posts, 0 answered