+ <div class="description">\r
+ <p>\r
+ This sample shows how to replace all <code><textarea></code> elements\r
+ with CKEditor by using PHP code.\r
+ </p>\r
+ <p>\r
+ To replace all <code><textarea></code> elements, place the following call at any point\r
+ after the last <code><textarea></code> element:\r
+ </p>\r
+ <pre class="samples">\r
+<?php\r
+// Include the CKEditor class.\r
+include("ckeditor/ckeditor.php");\r
+\r
+// Create a class instance.\r
+$CKEditor = new CKEditor();\r
+\r
+// Path to the CKEditor directory.\r
+$CKEditor->basePath = '/ckeditor/';\r
+\r
+// Replace all textarea elements with CKEditor.\r
+$CKEditor->replaceAll();\r
+?></pre>\r
+ </div>\r
+ <!-- This <div> holds alert messages to be displayed in the sample page. -->\r