hey all
i am new here ,
the editor is working fine ,
i am loading my pages using ajax request
my problem is ,when i try to load the page again using ajax i dont see the editor
(i done see nothing)
i have to refresh the page for that
i tries to do this
but the next time i see a simple text area
can u help me please
i am new here ,
the editor is working fine ,
i am loading my pages using ajax request
my problem is ,when i try to load the page again using ajax i dont see the editor
(i done see nothing)
i have to refresh the page for that
i tries to do this
<script type="text/javascript" >
var oEditor = CKEDITOR.instances.editor1;
alert(oEditor);
if(oEditor == undefined){
alert("replace");
CKEDITOR.replace( 'editor1' );
}
</script>
but the next time i see a simple text area
can u help me please

Re: Editor appears only one time
Re: Editor appears only one time
what i am doing is giving an id to my script tag
so after i am getting the page content
i am getting this javascript tag by id , and eval the script
the script is working each time now . cause i am displaying an alert in the javascript
this is what i am doing right after the ajax response (yes the javascript tag has the 'ajax_jscript' id )
var script = document.getElementById('ajax_jscript'); if(script != null){ eval(document.getElementById('ajax_jscript').innerHTML); }