Setting custom text on post-back

3 posts, 0 answers
  1. Lori
    Lori avatar
    3 posts
    Member since:
    Mar 2007

    Posted 30 Mar 2010 Link to this post

    Bad title!! Sorry, it is client-side!!!

    I'm using version 6.5 of the RadEditor. (no chances of upgrading) I'm having an issue with setting the text, client-side. I try setting the value using the innerHtml propertry, but it is not working.

    var

     

    editor = GetRadEditor(txt);

    editor.innerHTML += selectedText;

    If I check the editor.innerHtml value before I set it, it does get the value that is already in there. However, it doesn't change it to the selectedText. Any ideas?

  2. robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 30 Mar 2010 Link to this post

    Doesn't the RadEditor control for your version contain the client-side method set_html()? If it doesn't than I guess the only way would be to find out the name that's being applied to the iFrame that it uses and set the innerHTML on that.

    I hope that helps.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 31 Mar 2010 Link to this post

    Hi guys,

    To set content in RadEditor Classic on the client side you should use the SetHtml() client method. You can also paste content on cursor position using the PasteHtml method.

    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.
Back to Top