X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_samples%2Fphp%2Freplace.php;fp=_samples%2Fphp%2Freplace.php;h=0000000000000000000000000000000000000000;hb=4625dba05116026713fee9008dd93306be0d1553;hp=dbedd3c73adefbe5fc062d450a2c04150b005634;hpb=3fe9cac293e090ea459a3ee10d78cbe9e1dd0e03;p=ckeditor.git diff --git a/_samples/php/replace.php b/_samples/php/replace.php deleted file mode 100644 index dbedd3c..0000000 --- a/_samples/php/replace.php +++ /dev/null @@ -1,87 +0,0 @@ - - - -
-
- This sample shows how to replace a selected <textarea>
element
- with a CKEditor instance by using PHP code.
-
- To replace a <textarea>
element, place the following call at any point
- after the <textarea>
element:
-
-<?php -// Include the CKEditor class. -include_once "ckeditor/ckeditor.php"; - -// Create a class instance. -$CKEditor = new CKEditor(); - -// Path to the CKEditor directory. -$CKEditor->basePath = '/ckeditor/'; - -// Replace a textarea element with an id (or name) of "textarea_id". -$CKEditor->replace("textarea_id"); -?>-
- Note that textarea_id
in the code above is the id
attribute of
- the <textarea>
element to be replaced.
-