X-Git-Url: https://scm.cri.ensmp.fr/git/ckeditor.git/blobdiff_plain/e11f66eb655db8339a2d9b197b89f6c3b26099e1..579f65bc95a773bc6f8da75f6849ea49f365368b:/skins/ckeditor/_samples/php/advanced.php diff --git a/skins/ckeditor/_samples/php/advanced.php b/skins/ckeditor/_samples/php/advanced.php deleted file mode 100644 index 1d62ce5..0000000 --- a/skins/ckeditor/_samples/php/advanced.php +++ /dev/null @@ -1,120 +0,0 @@ - - - -
-- This sample shows how to insert a CKEditor instance with custom configuration options. -
-
- To set configuration options, use the config property. To set the attributes of a <textarea> element (which is displayed instead of CKEditor in unsupported browsers), use the textareaAttributes property.
-
-<?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/';
-
-// Set global configuration (used by every instance of CKEditor).
-$CKEditor->config['width'] = 600;
-
-// Change default textarea attributes.
-$CKEditor->textareaAttributes = array("cols" => 80, "rows" => 10);
-
-// The initial value to be displayed in the editor.
-$initialValue = 'This is some sample text.';
-
-// Create the first instance.
-$CKEditor->editor("textarea_id", $initialValue);
-?>
-
- Note that textarea_id in the code above is the name attribute of
- the <textarea> element to be created.
-