X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_samples%2Fphp%2Freplaceall.php;fp=_samples%2Fphp%2Freplaceall.php;h=0000000000000000000000000000000000000000;hb=4625dba05116026713fee9008dd93306be0d1553;hp=74f4418e13f020fc53e0454aad2fdac8c0067406;hpb=3fe9cac293e090ea459a3ee10d78cbe9e1dd0e03;p=ckeditor.git diff --git a/_samples/php/replaceall.php b/_samples/php/replaceall.php deleted file mode 100644 index 74f4418..0000000 --- a/_samples/php/replaceall.php +++ /dev/null @@ -1,88 +0,0 @@ - - - - - Replace All Textarea Elements — CKEditor Sample - - - - -

- CKEditor Sample — Replace All Textarea Elements Using PHP Code -

-
-

- 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();
-?>
-
- -
- -
-
-

- - -

-

- - -

-

- -

-
- - basePath = '/ckeditor/' - // If not set, CKEditor will try to detect the correct path. - $CKEditor->basePath = '../../'; - // Replace all textarea elements with CKEditor. - $CKEditor->replaceAll(); - ?> - -