X-Git-Url: https://scm.cri.minesparis.psl.eu/git/ckeditor.git/blobdiff_plain/871bad8291b6dbc29d489d95d185458caab25158..14d450d78a2d67ec1decd64c928151851961dd36:/_samples/php/replace.php?ds=inline diff --git a/_samples/php/replace.php b/_samples/php/replace.php deleted file mode 100644 index d22dcb7..0000000 --- a/_samples/php/replace.php +++ /dev/null @@ -1,87 +0,0 @@ - - - - - Replace Selected Textarea Elements — CKEditor Sample - - - - -

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

-
-

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

-
- -
- -
-
-

- - -

-

- -

-
- - basePath = '/ckeditor/' - // If not set, CKEditor will try to detect the correct path. - $CKEditor->basePath = '../../'; - // Replace a textarea element with an id (or name) of "editor1". - $CKEditor->replace("editor1"); - ?> - -