X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_samples%2Fphp%2Fadvanced.php;fp=_samples%2Fphp%2Fadvanced.php;h=98c2ba8070d1bc1b84604ee98f9016a37e56b2e6;hb=941b0a9ba4e673e292510d80a5a86806994b8ea6;hp=0000000000000000000000000000000000000000;hpb=7cd80714081a8ffdf4a1a8d2c72f120ed5ef3d6d;p=ckeditor.git diff --git a/_samples/php/advanced.php b/_samples/php/advanced.php new file mode 100644 index 0000000..98c2ba8 --- /dev/null +++ b/_samples/php/advanced.php @@ -0,0 +1,92 @@ + + + + + Sample - CKEditor + + + + +

+ CKEditor Sample +

+ +
+ +
+ +
+ Output +
+

+
+

+returnOutput = true; + +// Path to CKEditor directory, ideally instead of relative dir, use an absolute path: +// $CKEditor->basePath = '/ckeditor/' +// If not set, CKEditor will try to detect the correct path. +$CKEditor->basePath = '../../'; + +// Set global configuration (will be used by all instances 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. You are using CKEditor.

'; + +// Create first instance. +$code = $CKEditor->editor("editor1", $initialValue); + +echo $code; +?> +

+
+

+editor("editor2", $initialValue, $config); +?> + +

+
+
+ + +