How to retrieve data of CKEditor in code behind of an aspx page -
i'm trying integrate ckeditor application , i'm using below approach.
<textarea name="editor1" id="editor1" rows="10" cols="80"></textarea> <script type="text/javascript">     ckeditor.replace('editor1'); </script>   and in javascript set , data ckeditor i'm using code below
function cksetdata(val)         {            ckeditor.instances.editor1.setdata(val);        } var data = ckeditor.instances.editor1.getdata();   it working perfect when using javascript.
but want set , data code behind want save data of ckeditor database.
if using ckeditor control in aspx page i'm able retrieve data using .text property of ckeditor, unable data through javascript.
i need retrieve data both javascript , codebehind.
thanks ur answer mr.raymond kuipers..
im using work around problem..
as im able retrieve data in javascript im assigning data hidden variable , accessing value of hidden variable in button save event..
    function getckeditordata() {     document.getelementbyid('<%=hdn1.clientid%>').value = ckeditor.instances.editor1.getdata();     alert(document.getelementbyid('<%=hdn1.clientid%>').value); }   in way assigning hidden variable , accessing data in code behind follows..
string templatecontent =  hdn1.value;      
Comments
Post a Comment