X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_samples%2Fphp%2Fstandalone.php;h=1b02a520577d4b0b58e9c5f409cd600275b25cc8;hb=a272c66d841421f8bf933c16535bdcde1c4649fc;hp=2a39ca1662814882261814f7976f4ef0a9cc439a;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_samples/php/standalone.php b/_samples/php/standalone.php index 2a39ca1..1b02a52 100644 --- a/_samples/php/standalone.php +++ b/_samples/php/standalone.php @@ -1,18 +1,40 @@
-+ This sample shows how to create a CKEditor instance with PHP. +
++<?php +include_once "ckeditor/ckeditor.php"; + +// Create a class instance. +$CKEditor = new CKEditor(); + +// Path to the CKEditor directory. +$CKEditor->basePath = '/ckeditor/'; + +// Create a textarea element and attach CKEditor to it. +$CKEditor->editor("textarea_id", "This is some sample text"); +?>+
+ Note that textarea_id
in the code above is the id
and name
attribute of
+ the <textarea>
element that will be created.
+