0
votes

I am using ajax to fill a form that has a textarea in it that I would like to be using ckeditor with. When the content is return the textarea gets created but the editor does not get applied to it. In my ajax file I have: $initialValue = $thisjobrow['description']; $CKEditor = new CKEditor(); $CKEditor->basePath = '../ckeditor/'; $CKEditor->editor("myeditor1", $initialValue);

at the top I have: include_once("../ckeditor/ckeditor.php") ; so the textarea gets created my content gets added in but all I end up with is a plain old text area called myeditor1.

Any and all help most welcomed.

2

2 Answers

0
votes

When receiving the ajax response try to initialize ckeditor on page load (the page you call through ajax) or try with .live()

0
votes

You're probably are initializing the editor when your page is rendered.

You most likely want to initialize the editor in the callback of your AJAX request.