JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.1
[ckeditor.git] / ckeditor.php
diff --git a/ckeditor.php b/ckeditor.php
new file mode 100644 (file)
index 0000000..edbc703
--- /dev/null
@@ -0,0 +1,29 @@
+<?php\r
+/*\r
+ * Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+ * For licensing, see LICENSE.html or http://ckeditor.com/license\r
+ */\r
+\r
+/*! \mainpage CKEditor - PHP server side intergation\r
+ * \section intro_sec CKEditor\r
+ * Visit <a href="http://ckeditor.com">CKEditor web site</a> to find more information about the editor.\r
+ * \section install_sec Installation\r
+ * \subsection step1 Include ckeditor.php in your PHP web site.\r
+ * @code\r
+ * <?php\r
+ * include("ckeditor/ckeditor.php");\r
+ * ?>\r
+ * @endcode\r
+ * \subsection step2 Create CKEditor class instance and use one of available methods to insert CKEditor.\r
+ * @code\r
+ * <?php\r
+ * $CKEditor = new CKEditor();\r
+ * echo $CKEditor->textarea("field1", "<p>Initial value.</p>");\r
+ * ?>\r
+ * @endcode\r
+ */\r
+\r
+if ( !function_exists('version_compare') || version_compare( phpversion(), '5', '<' ) )\r
+       include_once( 'ckeditor_php4.php' ) ;\r
+else\r
+       include_once( 'ckeditor_php5.php' ) ;\r