My problem is that ckeditor doesn't appear, the page just shows an empty text area. But that's not the thing, my page uses a jquery ajax get request to load the page content into a div, and with all this process ckeditor doesn't appear, but if I load the cntent directly form its source code ckeditor appears prefectly. I'll leave the code here:
index.php
<head> <title>Wikihelp</title> <script type="text/javascript" src="ckeditor/ckeditor.js"></script> <script src="ckeditor/_samples/sample.js" type="text/javascript"></script> <link href="ckeditor/_samples/sample.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="javascript.js"> </script> <script type="text/javascript" src="/ckeditor/ckeditor.js"></script> <script type="text/javascript" src="/ckeditor/adapters/jquery.js"></script> <script type="text/javascript" src="jquery.js"> </script> .... <div id="main_div" align="left" valign="top" width="100%"></div>
javascript.js
function changedivget(page, data, div) { if (data== "none") { $.get(page, function(data){ document.getElementById(div).innerHTML=data; }); } else { $.get(page, data, function(data){ document.getElementById(div).innerHTML=data; }); }; };
summary.php
<head> <title>Replace Textareas by Class Name - CKEditor Sample</title> <meta content="text/html; charset=utf-8" http-equiv="content-type" /> <script type="text/javascript" src="ckeditor/ckeditor.js"></script> <script src="ckeditor/_samples/sample.js" type="text/javascript"></script> <link href="ckeditor/_samples/sample.css" rel="stylesheet" type="text/css" /> </head> ..... <form> <textarea class="ckeditor" name="description" id="description" style="resize:none; width:600px; padding: 5px 4px 4px; height:700px;"> Enter text here</textarea> <textarea class="ckeditor" cols="80" id="editor1" name="editor1" rows="10">Enter text here</textarea> </form>
Note it's not an issue with the get request because it has worked perfectly with other content.
thanks in advance