+ <div class="description">\r
+ <p>\r
+ This sample shows how to replace a selected <code><textarea></code> element\r
+ with a CKEditor instance by using PHP code.\r
+ </p>\r
+ <p>\r
+ To replace a <code><textarea></code> element, place the following call at any point\r
+ after the <code><textarea></code> element:\r
+ </p>\r
+ <pre class="samples">\r
+<?php\r
+// Include the CKEditor class.\r
+include_once "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 a textarea element with an id (or name) of "textarea_id".\r
+$CKEditor->replace("textarea_id");\r
+?></pre>\r
+ <p>\r
+ Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of\r
+ the <code><textarea></code> element to be replaced.\r
+ </p>\r
+ </div>\r