X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_samples%2Fphp%2Fstandalone.php;fp=_samples%2Fphp%2Fstandalone.php;h=0000000000000000000000000000000000000000;hb=4625dba05116026713fee9008dd93306be0d1553;hp=1b02a520577d4b0b58e9c5f409cd600275b25cc8;hpb=3fe9cac293e090ea459a3ee10d78cbe9e1dd0e03;p=ckeditor.git diff --git a/_samples/php/standalone.php b/_samples/php/standalone.php deleted file mode 100644 index 1b02a52..0000000 --- a/_samples/php/standalone.php +++ /dev/null @@ -1,83 +0,0 @@ - - - - - Creating CKEditor Instances — CKEditor Sample - - - - -

- CKEditor Sample — Creating CKEditor Instances -

-
-

- 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. -

-
- -
- -
- -
-

- -

-

- This is some sample text.

'; - // Create a class instance. - $CKEditor = new CKEditor(); - // Path to the CKEditor directory, ideally use an absolute path instead of a relative dir. - // $CKEditor->basePath = '/ckeditor/' - // If not set, CKEditor will try to detect the correct path. - $CKEditor->basePath = '../../'; - // Create a textarea element and attach CKEditor to it. - $CKEditor->editor("editor1", $initialValue); - ?> - -

-
- - -