Hello guys!
How to load content into the ckeditor? Pls look http://ckeditor.com/demo for example.
My code is below:

<textarea class="ckeditor" name="pagecontent" cols="100" rows="20" id="pagecontent"></textarea> 
<?php 
   include_once "../Misc/ckeditor/ckeditor.php"; 
   $CKEditor = new CKEditor(); 
   $CKEditor->basePath = '../Misc/ckeditor/'; 
   $CKEditor->replace("pagecontent"); 


?>

I want the content automatically loaded from MySQL database to the CKEditor while the person opening the page.
Thanks for help.

Recommended Answers

All 2 Replies

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.