How to get instance of editor wrapped in UserControl?

  •  12-17-2008, 4:06 AM

    How to get instance of editor wrapped in UserControl?

    Hi Adam,

    I have a problem. I have created a usercontrol (myusercontrol) and in that I have placed cuteEditor control. On my application I 'm using this user control which exposes some of required properties and methods of cuteeditor.

    On some pages I have a requirement to get the HTML content of myusercontrol.
    WhatI'm trying is to get the instance of myusercontrol and then try to call the getHtml method. Is that correct?
    How to get instance of editor wrapped in UserControl?
     
    Somehow I tried toget the instance in javascript by using following
     
    var contentData = document.getElementById('ctl00$cplxyz$myusercontrol$Editor2').value;

    but this will give me junk data also. I tried .innerHTML and .innerText also but same result.
    means If I entered "abc" in editor, then the above returns something like '#dbc" etc or something like that.

    Please suggest some solution for this.

    Thanks




    Thanks
View Complete Thread