ckeditor.php 933 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /*
  3. * Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
  4. * For licensing, see LICENSE.html or http://ckeditor.com/license
  5. */
  6. /*! \mainpage CKEditor - PHP server side intergation
  7. * \section intro_sec CKEditor
  8. * Visit <a href="http://ckeditor.com">CKEditor web site</a> to find more information about the editor.
  9. * \section install_sec Installation
  10. * \subsection step1 Include ckeditor.php in your PHP web site.
  11. * @code
  12. * <?php
  13. * include("ckeditor/ckeditor.php");
  14. * ?>
  15. * @endcode
  16. * \subsection step2 Create CKEditor class instance and use one of available methods to insert CKEditor.
  17. * @code
  18. * <?php
  19. * $CKEditor = new CKEditor();
  20. * echo $CKEditor->textarea("field1", "<p>Initial value.</p>");
  21. * ?>
  22. * @endcode
  23. */
  24. if ( !function_exists('version_compare') || version_compare( phpversion(), '5', '<' ) )
  25. include_once( 'ckeditor_php4.php' ) ;
  26. else
  27. include_once( 'ckeditor_php5.php' ) ;