+1-888-365-2779
Try Now
More in this section

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

How to acknowledge carriage return in RadEditor?

2 posts, 0 answered
  1. Aamir Ali Ansari
    Aamir Ali Ansari avatar
    1 posts
    Registered:
    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
    Registered:
    19 Apr 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.


    Regards,
    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