+ <p>\r
+ This sample shows how to insert a CKEditor instance with custom configuration options.\r
+ </p>\r
+ <p>\r
+ To set configuration options, use the <a class="samples" href="http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html"><code>config</code></a> property. To set the attributes of a <code><textarea></code> element (which is displayed instead of CKEditor in unsupported browsers), use the <code>textareaAttributes</code> property.\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
+// Set global configuration (used by every instance of CKEditor).\r
+$CKEditor-><strong>config['width']</strong> = 600;\r
+\r
+// Change default textarea attributes.\r
+$CKEditor-><strong>textareaAttributes</strong> = array("cols" => 80, "rows" => 10);\r
+\r
+// The initial value to be displayed in the editor.\r
+$initialValue = 'This is some sample text.';\r
+\r
+// Create the first instance.\r
+$CKEditor->editor("textarea_id", $initialValue);\r
+?></pre>\r
+ <p>\r
+ Note that <code><em>textarea_id</em></code> in the code above is the <code>name</code> attribute of\r
+ the <code><textarea></code> element to be created.\r
+ </p>\r
+\r