Color is not saved using get_html

2 posts, 0 answers
  1. ido nahmias
    ido nahmias avatar
    64 posts
    Member since:
    May 2006

    Posted 26 Jun 2014 Link to this post


    I am using editor.get_html(true) in order to copy editor's content to a div, but when I only change  the text color, the color style isn't copied to a div.

    I think the problem is that the color style is added to the body where it should wrap the text by span with color style.

    *screenshot of the editor html is attached.

    Scenario to reproduce:

    1. mark the text
    2. change the text color to red
    3. use  editor.get_html(true) to copy the html content to a div
    4. It can be notice the color red doesn't appear

    Telerik version: 2014.1.225.40


  2. Ianko
    Ianko avatar
    1890 posts

    Posted 26 Jun 2014 Link to this post

    Hi Ido,

    With the used 2014.1.225.40 version a bug has been introduced due to which the stylization of plain text has been added to the body element as you described.

    This bug is fixed in the 2014 Q1 SP1 version. I suggest upgrading the used Telerik dlls and verify if the described scenario behaves as per to your expectations. Also, you can test the latest availabe version of the RadEditor with this online demo and test how the style formatting is applied.

    If you still have difficulties with this issue, please provide a sample configuration demo, so that I could investigate the exact scenario locally.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top