X-Git-Url: https://scm.cri.ensmp.fr/git/ckeditor.git/blobdiff_plain/256592bf803e851aa7fc953e08a6e9e58d970f8c..871bad8291b6dbc29d489d95d185458caab25158:/skins/ckeditor/_samples/php/replaceall.php diff --git a/skins/ckeditor/_samples/php/replaceall.php b/skins/ckeditor/_samples/php/replaceall.php new file mode 100644 index 0000000..4415fbd --- /dev/null +++ b/skins/ckeditor/_samples/php/replaceall.php @@ -0,0 +1,88 @@ + + + +
+
+ This sample shows how to replace all <textarea> elements
+ with CKEditor by using PHP code.
+
+ To replace all <textarea> elements, place the following call at any point
+ after the last <textarea> element:
+
+<?php
+// Include the CKEditor class.
+include("ckeditor/ckeditor.php");
+
+// Create a class instance.
+$CKEditor = new CKEditor();
+
+// Path to the CKEditor directory.
+$CKEditor->basePath = '/ckeditor/';
+
+// Replace all textarea elements with CKEditor.
+$CKEditor->replaceAll();
+?>
+