diff --git a/.htaccess b/.htaccess deleted file mode 100644 index 1427d97fb6..0000000000 --- a/.htaccess +++ /dev/null @@ -1,24 +0,0 @@ -# -# Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. -# For licensing, see LICENSE.html or http://ckeditor.com/license -# - -# -# On some specific Linux installations you could face problems with Firefox. -# It could give you errors when loading the editor saying that some illegal -# characters were found (three strange chars in the beginning of the file). -# This could happen if you map the .js or .css files to PHP, for example. -# -# Those characters are the Byte Order Mask (BOM) of the Unicode encoded files. -# All FCKeditor files are Unicode encoded. -# - -AddType application/x-javascript .js -AddType text/css .css - -# -# If PHP is mapped to handle XML files, you could have some issues. The -# following will disable it. -# - -AddType text/xml .xml diff --git a/CHANGES.html b/CHANGES.html deleted file mode 100644 index 0fc8f68a71..0000000000 --- a/CHANGES.html +++ /dev/null @@ -1,1445 +0,0 @@ - - - - - Changelog — CKEditor - - - - -

- CKEditor Changelog -

-

- CKEditor 3.6.3 (SVN)

-

- New features:

- -

- Fixed issues:

- -

- CKEditor 3.6.2

-

- New features:

- -

- Fixed issues:

- -

- CKEditor 3.6.1

-

- New features:

- -

- Fixed issues:

- -

- CKEditor 3.6

-

- New features:

- -

- Fixed issues:

- -

- CKEditor 3.5.4

-

- Fixed issues:

- -

- CKEditor 3.5.3

-

- New features:

- -

- Fixed issues:

- -

- CKEditor 3.5.2

-

- Fixed issues:

- -

- CKEditor 3.5.1

-

- New features:

- -

- Fixed issues:

- -

- CKEditor 3.5

-

- New features:

- -

- Fixed issues:

- -

- CKEditor 3.4.3

-

- Fixed issues:

- -

- CKEditor 3.4.2

-

- New features:

- -

- Fixed issues:

- -

- CKEditor 3.4.1

-

- New features:

- -

- Fixed issues:

- -

- CKEditor 3.4

-

- Fixed issues:

- -

- CKEditor 3.4 Beta

-

- New features:

- -

- Fixed issues:

- -

- CKEditor 3.3.2

-

- New features:

- -

- Fixed issues:

- -

- CKEditor 3.3.1

-

- Fixed issues:

- -

- CKEditor 3.3

-

- New features:

- -

- CKEditor 3.2.2

-

- New features:

- -

- Fixed issues:

- -

- CKEditor 3.2.1

-

- New features:

- -

- Fixed issues:

- -

- CKEditor 3.2

-

- New features:

- -

- Fixed issues:

- -

- CKEditor 3.1.1

-

- New features:

- -

- Fixed issues:

- -

- CKEditor 3.1

-

- New features:

- -

- Fixed issues:

- -

- CKEditor 3.0.2

-

- New features:

- -

- Fixed issues:

- -

- CKEditor 3.0.1

-

- New features:

- -

- Fixed issues:

- -

- CKEditor 3.0

-

- New features:

- -

- Fixed issues:

- -

- CKEditor 3.0 RC

-

- Changelog starts at this release.

- - - diff --git a/INSTALL.html b/INSTALL.html deleted file mode 100644 index 565ed261d1..0000000000 --- a/INSTALL.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - Installation Guide - CKEditor - - - - -

- CKEditor Installation Guide

-

- What's CKEditor?

-

- CKEditor is a text editor to be used inside web pages. It's not a replacement - for desktop text editors like Word or OpenOffice, but a component to be used as - part of web applications and web sites.

-

- Installation

-

- Installing CKEditor is an easy task. Just follow these simple steps:

-
    -
  1. Download the latest version of the editor from our web site: http://ckeditor.com. You should have already completed - this step, but be sure you have the very latest version.
  2. -
  3. Extract (decompress) the downloaded file into the root of your - web site.
  4. -
-

- Note: CKEditor is by default installed in the "ckeditor" - folder. You can place the files in whichever you want though.

-

- Checking Your Installation -

-

- The editor comes with a few sample pages that can be used to verify that installation - proceeded properly. Take a look at the _samples directory.

-

- To test your installation, just call the following page at your web site:

-
-http://<your site>/<CKEditor installation path>/_samples/index.html
-
-For example:
-http://www.example.com/ckeditor/_samples/index.html
-

- Documentation

-

- The full editor documentation is available online at the following address:
- http://docs.cksource.com/ckeditor

- - - diff --git a/LICENSE.html b/LICENSE.html deleted file mode 100644 index 785254a685..0000000000 --- a/LICENSE.html +++ /dev/null @@ -1,1372 +0,0 @@ - - - - - License - CKEditor - - -

- Software License Agreement -

-

- CKEditor™ - The text editor for Internet™ - - http://ckeditor.com
- Copyright © 2003-2011, CKSource - Frederico Knabben. All rights reserved. -

-

- Licensed under the terms of any of the following licenses at your choice: -

- -

- You are not required to, but if you want to explicitly declare the license you have - chosen to be bound to when using, reproducing, modifying and distributing this software, - just include a text file titled "LEGAL" in your version of this software, indicating - your license choice. In any case, your choice will not restrict any recipient of - your version of this software to use, reproduce, modify and distribute this software - under any of the above licenses. -

-

- Sources of Intellectual Property Included in CKEditor -

-

- Where not otherwise indicated, all CKEditor content is authored by CKSource engineers - and consists of CKSource-owned intellectual property. In some specific instances, - CKEditor will incorporate work done by developers outside of CKSource with their - express permission. -

-

- YUI Test: At _source/tests/yuitest.js - can be found part of the source code of YUI, which is licensed under the terms of - the BSD License. YUI is - Copyright © 2008, Yahoo! Inc. -

- -

- JavaScript Lint: At _dev/_thirdparty/jsl - can be found the executable files of JavaScript Lint, which are licensed under the - terms of the Mozilla Public License Version 1.1 (http://developer.yahoo.com/yui/license.txt). - JavaScript Lint is Copyright © 2006 Matthias Miller. -

-

- JsDoc Toolkit: At _dev/_thirdparty/jsdoc-toolkit can be found the - source code of JsDoc Toolkit, which is licensed under the terms of the - X11/MIT License Version - (http://www.opensource.org/licenses/mit-license.php). - JsDoc Toolkit is Copyright © 2008 Michael Mathews. -

-

- Console_Getopt and - PEAR: At _dev/_thirdparty/console_getopt can be found the source code of - Console_Getopt and part of the source code of PEAR, which are licensed under the - terms of the PHP License Version 3.0 (http://www.php.net/license/3_0.txt). - Console_Getopt and PEAR are Copyright © 1997-2004 The PHP Group. -

- -

- Trademarks -

-

- CKEditor is a trademark of CKSource - Frederico Knabben. All other brand and product - names are trademarks, registered trademarks or service marks of their respective - holders. -

- - diff --git a/_dev/_thirdparty/console_getopt/Getopt.php b/_dev/_thirdparty/console_getopt/Getopt.php deleted file mode 100644 index 41a87bbb75..0000000000 --- a/_dev/_thirdparty/console_getopt/Getopt.php +++ /dev/null @@ -1,290 +0,0 @@ - | -// +----------------------------------------------------------------------+ -// -// $Id: Getopt.php,v 1.4 2007/06/12 14:58:56 cellog Exp $ - -require_once 'PEAR.php'; - -/** - * Command-line options parsing class. - * - * @author Andrei Zmievski - * - */ -class Console_Getopt { - /** - * Parses the command-line options. - * - * The first parameter to this function should be the list of command-line - * arguments without the leading reference to the running program. - * - * The second parameter is a string of allowed short options. Each of the - * option letters can be followed by a colon ':' to specify that the option - * requires an argument, or a double colon '::' to specify that the option - * takes an optional argument. - * - * The third argument is an optional array of allowed long options. The - * leading '--' should not be included in the option name. Options that - * require an argument should be followed by '=', and options that take an - * option argument should be followed by '=='. - * - * The return value is an array of two elements: the list of parsed - * options and the list of non-option command-line arguments. Each entry in - * the list of parsed options is a pair of elements - the first one - * specifies the option, and the second one specifies the option argument, - * if there was one. - * - * Long and short options can be mixed. - * - * Most of the semantics of this function are based on GNU getopt_long(). - * - * @param array $args an array of command-line arguments - * @param string $short_options specifies the list of allowed short options - * @param array $long_options specifies the list of allowed long options - * - * @return array two-element array containing the list of parsed options and - * the non-option arguments - * - * @access public - * - */ - function getopt2($args, $short_options, $long_options = null) - { - return Console_Getopt::doGetopt(2, $args, $short_options, $long_options); - } - - /** - * This function expects $args to start with the script name (POSIX-style). - * Preserved for backwards compatibility. - * @see getopt2() - */ - function getopt($args, $short_options, $long_options = null) - { - return Console_Getopt::doGetopt(1, $args, $short_options, $long_options); - } - - /** - * The actual implementation of the argument parsing code. - */ - function doGetopt($version, $args, $short_options, $long_options = null) - { - // in case you pass directly readPHPArgv() as the first arg - if (PEAR::isError($args)) { - return $args; - } - if (empty($args)) { - return array(array(), array()); - } - $opts = array(); - $non_opts = array(); - - settype($args, 'array'); - - if ($long_options) { - sort($long_options); - } - - /* - * Preserve backwards compatibility with callers that relied on - * erroneous POSIX fix. - */ - if ($version < 2) { - if (isset($args[0]{0}) && $args[0]{0} != '-') { - array_shift($args); - } - } - - reset($args); - while (list($i, $arg) = each($args)) { - - /* The special element '--' means explicit end of - options. Treat the rest of the arguments as non-options - and end the loop. */ - if ($arg == '--') { - $non_opts = array_merge($non_opts, array_slice($args, $i + 1)); - break; - } - - if ($arg{0} != '-' || (strlen($arg) > 1 && $arg{1} == '-' && !$long_options)) { - $non_opts = array_merge($non_opts, array_slice($args, $i)); - break; - } elseif (strlen($arg) > 1 && $arg{1} == '-') { - $error = Console_Getopt::_parseLongOption(substr($arg, 2), $long_options, $opts, $args); - if (PEAR::isError($error)) - return $error; - } elseif ($arg == '-') { - // - is stdin - $non_opts = array_merge($non_opts, array_slice($args, $i)); - break; - } else { - $error = Console_Getopt::_parseShortOption(substr($arg, 1), $short_options, $opts, $args); - if (PEAR::isError($error)) - return $error; - } - } - - return array($opts, $non_opts); - } - - /** - * @access private - * - */ - function _parseShortOption($arg, $short_options, &$opts, &$args) - { - for ($i = 0; $i < strlen($arg); $i++) { - $opt = $arg{$i}; - $opt_arg = null; - - /* Try to find the short option in the specifier string. */ - if (($spec = strstr($short_options, $opt)) === false || $arg{$i} == ':') - { - return PEAR::raiseError("Console_Getopt: unrecognized option -- $opt"); - } - - if (strlen($spec) > 1 && $spec{1} == ':') { - if (strlen($spec) > 2 && $spec{2} == ':') { - if ($i + 1 < strlen($arg)) { - /* Option takes an optional argument. Use the remainder of - the arg string if there is anything left. */ - $opts[] = array($opt, substr($arg, $i + 1)); - break; - } - } else { - /* Option requires an argument. Use the remainder of the arg - string if there is anything left. */ - if ($i + 1 < strlen($arg)) { - $opts[] = array($opt, substr($arg, $i + 1)); - break; - } else if (list(, $opt_arg) = each($args)) { - /* Else use the next argument. */; - if (Console_Getopt::_isShortOpt($opt_arg) || Console_Getopt::_isLongOpt($opt_arg)) { - return PEAR::raiseError("Console_Getopt: option requires an argument -- $opt"); - } - } else { - return PEAR::raiseError("Console_Getopt: option requires an argument -- $opt"); - } - } - } - - $opts[] = array($opt, $opt_arg); - } - } - - /** - * @access private - * - */ - function _isShortOpt($arg) - { - return strlen($arg) == 2 && $arg[0] == '-' && preg_match('/[a-zA-Z]/', $arg[1]); - } - - /** - * @access private - * - */ - function _isLongOpt($arg) - { - return strlen($arg) > 2 && $arg[0] == '-' && $arg[1] == '-' && - preg_match('/[a-zA-Z]+$/', substr($arg, 2)); - } - - /** - * @access private - * - */ - function _parseLongOption($arg, $long_options, &$opts, &$args) - { - @list($opt, $opt_arg) = explode('=', $arg, 2); - $opt_len = strlen($opt); - - for ($i = 0; $i < count($long_options); $i++) { - $long_opt = $long_options[$i]; - $opt_start = substr($long_opt, 0, $opt_len); - $long_opt_name = str_replace('=', '', $long_opt); - - /* Option doesn't match. Go on to the next one. */ - if ($long_opt_name != $opt) { - continue; - } - - $opt_rest = substr($long_opt, $opt_len); - - /* Check that the options uniquely matches one of the allowed - options. */ - if ($i + 1 < count($long_options)) { - $next_option_rest = substr($long_options[$i + 1], $opt_len); - } else { - $next_option_rest = ''; - } - if ($opt_rest != '' && $opt{0} != '=' && - $i + 1 < count($long_options) && - $opt == substr($long_options[$i+1], 0, $opt_len) && - $next_option_rest != '' && - $next_option_rest{0} != '=') { - return PEAR::raiseError("Console_Getopt: option --$opt is ambiguous"); - } - - if (substr($long_opt, -1) == '=') { - if (substr($long_opt, -2) != '==') { - /* Long option requires an argument. - Take the next argument if one wasn't specified. */; - if (!strlen($opt_arg) && !(list(, $opt_arg) = each($args))) { - return PEAR::raiseError("Console_Getopt: option --$opt requires an argument"); - } - if (Console_Getopt::_isShortOpt($opt_arg) || Console_Getopt::_isLongOpt($opt_arg)) { - return PEAR::raiseError("Console_Getopt: option requires an argument --$opt"); - } - } - } else if ($opt_arg) { - return PEAR::raiseError("Console_Getopt: option --$opt doesn't allow an argument"); - } - - $opts[] = array('--' . $opt, $opt_arg); - return; - } - - return PEAR::raiseError("Console_Getopt: unrecognized option --$opt"); - } - - /** - * Safely read the $argv PHP array across different PHP configurations. - * Will take care on register_globals and register_argc_argv ini directives - * - * @access public - * @return mixed the $argv PHP array or PEAR error if not registered - */ - function readPHPArgv() - { - global $argv; - if (!is_array($argv)) { - if (!@is_array($_SERVER['argv'])) { - if (!@is_array($GLOBALS['HTTP_SERVER_VARS']['argv'])) { - return PEAR::raiseError("Console_Getopt: Could not read cmd args (register_argc_argv=Off?)"); - } - return $GLOBALS['HTTP_SERVER_VARS']['argv']; - } - return $_SERVER['argv']; - } - return $argv; - } - -} - -?> diff --git a/_dev/_thirdparty/console_getopt/PEAR.php b/_dev/_thirdparty/console_getopt/PEAR.php deleted file mode 100644 index 1eb990bac1..0000000000 --- a/_dev/_thirdparty/console_getopt/PEAR.php +++ /dev/null @@ -1,1118 +0,0 @@ - - * @author Stig Bakken - * @author Tomas V.V.Cox - * @author Greg Beaver - * @copyright 1997-2008 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: PEAR.php,v 1.104 2008/01/03 20:26:34 cellog Exp $ - * @link http://pear.php.net/package/PEAR - * @since File available since Release 0.1 - */ - -/**#@+ - * ERROR constants - */ -define('PEAR_ERROR_RETURN', 1); -define('PEAR_ERROR_PRINT', 2); -define('PEAR_ERROR_TRIGGER', 4); -define('PEAR_ERROR_DIE', 8); -define('PEAR_ERROR_CALLBACK', 16); -/** - * WARNING: obsolete - * @deprecated - */ -define('PEAR_ERROR_EXCEPTION', 32); -/**#@-*/ -define('PEAR_ZE2', (function_exists('version_compare') && - version_compare(zend_version(), "2-dev", "ge"))); - -if (substr(PHP_OS, 0, 3) == 'WIN') { - define('OS_WINDOWS', true); - define('OS_UNIX', false); - define('PEAR_OS', 'Windows'); -} else { - define('OS_WINDOWS', false); - define('OS_UNIX', true); - define('PEAR_OS', 'Unix'); // blatant assumption -} - -// instant backwards compatibility -if (!defined('PATH_SEPARATOR')) { - if (OS_WINDOWS) { - define('PATH_SEPARATOR', ';'); - } else { - define('PATH_SEPARATOR', ':'); - } -} - -$GLOBALS['_PEAR_default_error_mode'] = PEAR_ERROR_RETURN; -$GLOBALS['_PEAR_default_error_options'] = E_USER_NOTICE; -$GLOBALS['_PEAR_destructor_object_list'] = array(); -$GLOBALS['_PEAR_shutdown_funcs'] = array(); -$GLOBALS['_PEAR_error_handler_stack'] = array(); - -@ini_set('track_errors', true); - -/** - * Base class for other PEAR classes. Provides rudimentary - * emulation of destructors. - * - * If you want a destructor in your class, inherit PEAR and make a - * destructor method called _yourclassname (same name as the - * constructor, but with a "_" prefix). Also, in your constructor you - * have to call the PEAR constructor: $this->PEAR();. - * The destructor method will be called without parameters. Note that - * at in some SAPI implementations (such as Apache), any output during - * the request shutdown (in which destructors are called) seems to be - * discarded. If you need to get any debug information from your - * destructor, use error_log(), syslog() or something similar. - * - * IMPORTANT! To use the emulated destructors you need to create the - * objects by reference: $obj =& new PEAR_child; - * - * @category pear - * @package PEAR - * @author Stig Bakken - * @author Tomas V.V. Cox - * @author Greg Beaver - * @copyright 1997-2006 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version Release: 1.7.1 - * @link http://pear.php.net/package/PEAR - * @see PEAR_Error - * @since Class available since PHP 4.0.2 - * @link http://pear.php.net/manual/en/core.pear.php#core.pear.pear - */ -class PEAR -{ - // {{{ properties - - /** - * Whether to enable internal debug messages. - * - * @var bool - * @access private - */ - var $_debug = false; - - /** - * Default error mode for this object. - * - * @var int - * @access private - */ - var $_default_error_mode = null; - - /** - * Default error options used for this object when error mode - * is PEAR_ERROR_TRIGGER. - * - * @var int - * @access private - */ - var $_default_error_options = null; - - /** - * Default error handler (callback) for this object, if error mode is - * PEAR_ERROR_CALLBACK. - * - * @var string - * @access private - */ - var $_default_error_handler = ''; - - /** - * Which class to use for error objects. - * - * @var string - * @access private - */ - var $_error_class = 'PEAR_Error'; - - /** - * An array of expected errors. - * - * @var array - * @access private - */ - var $_expected_errors = array(); - - // }}} - - // {{{ constructor - - /** - * Constructor. Registers this object in - * $_PEAR_destructor_object_list for destructor emulation if a - * destructor object exists. - * - * @param string $error_class (optional) which class to use for - * error objects, defaults to PEAR_Error. - * @access public - * @return void - */ - function PEAR($error_class = null) - { - $classname = strtolower(get_class($this)); - if ($this->_debug) { - print "PEAR constructor called, class=$classname\n"; - } - if ($error_class !== null) { - $this->_error_class = $error_class; - } - while ($classname && strcasecmp($classname, "pear")) { - $destructor = "_$classname"; - if (method_exists($this, $destructor)) { - global $_PEAR_destructor_object_list; - $_PEAR_destructor_object_list[] = &$this; - if (!isset($GLOBALS['_PEAR_SHUTDOWN_REGISTERED'])) { - register_shutdown_function("_PEAR_call_destructors"); - $GLOBALS['_PEAR_SHUTDOWN_REGISTERED'] = true; - } - break; - } else { - $classname = get_parent_class($classname); - } - } - } - - // }}} - // {{{ destructor - - /** - * Destructor (the emulated type of...). Does nothing right now, - * but is included for forward compatibility, so subclass - * destructors should always call it. - * - * See the note in the class desciption about output from - * destructors. - * - * @access public - * @return void - */ - function _PEAR() { - if ($this->_debug) { - printf("PEAR destructor called, class=%s\n", strtolower(get_class($this))); - } - } - - // }}} - // {{{ getStaticProperty() - - /** - * If you have a class that's mostly/entirely static, and you need static - * properties, you can use this method to simulate them. Eg. in your method(s) - * do this: $myVar = &PEAR::getStaticProperty('myclass', 'myVar'); - * You MUST use a reference, or they will not persist! - * - * @access public - * @param string $class The calling classname, to prevent clashes - * @param string $var The variable to retrieve. - * @return mixed A reference to the variable. If not set it will be - * auto initialised to NULL. - */ - function &getStaticProperty($class, $var) - { - static $properties; - if (!isset($properties[$class])) { - $properties[$class] = array(); - } - if (!array_key_exists($var, $properties[$class])) { - $properties[$class][$var] = null; - } - return $properties[$class][$var]; - } - - // }}} - // {{{ registerShutdownFunc() - - /** - * Use this function to register a shutdown method for static - * classes. - * - * @access public - * @param mixed $func The function name (or array of class/method) to call - * @param mixed $args The arguments to pass to the function - * @return void - */ - function registerShutdownFunc($func, $args = array()) - { - // if we are called statically, there is a potential - // that no shutdown func is registered. Bug #6445 - if (!isset($GLOBALS['_PEAR_SHUTDOWN_REGISTERED'])) { - register_shutdown_function("_PEAR_call_destructors"); - $GLOBALS['_PEAR_SHUTDOWN_REGISTERED'] = true; - } - $GLOBALS['_PEAR_shutdown_funcs'][] = array($func, $args); - } - - // }}} - // {{{ isError() - - /** - * Tell whether a value is a PEAR error. - * - * @param mixed $data the value to test - * @param int $code if $data is an error object, return true - * only if $code is a string and - * $obj->getMessage() == $code or - * $code is an integer and $obj->getCode() == $code - * @access public - * @return bool true if parameter is an error - */ - function isError($data, $code = null) - { - if (is_a($data, 'PEAR_Error')) { - if (is_null($code)) { - return true; - } elseif (is_string($code)) { - return $data->getMessage() == $code; - } else { - return $data->getCode() == $code; - } - } - return false; - } - - // }}} - // {{{ setErrorHandling() - - /** - * Sets how errors generated by this object should be handled. - * Can be invoked both in objects and statically. If called - * statically, setErrorHandling sets the default behaviour for all - * PEAR objects. If called in an object, setErrorHandling sets - * the default behaviour for that object. - * - * @param int $mode - * One of PEAR_ERROR_RETURN, PEAR_ERROR_PRINT, - * PEAR_ERROR_TRIGGER, PEAR_ERROR_DIE, - * PEAR_ERROR_CALLBACK or PEAR_ERROR_EXCEPTION. - * - * @param mixed $options - * When $mode is PEAR_ERROR_TRIGGER, this is the error level (one - * of E_USER_NOTICE, E_USER_WARNING or E_USER_ERROR). - * - * When $mode is PEAR_ERROR_CALLBACK, this parameter is expected - * to be the callback function or method. A callback - * function is a string with the name of the function, a - * callback method is an array of two elements: the element - * at index 0 is the object, and the element at index 1 is - * the name of the method to call in the object. - * - * When $mode is PEAR_ERROR_PRINT or PEAR_ERROR_DIE, this is - * a printf format string used when printing the error - * message. - * - * @access public - * @return void - * @see PEAR_ERROR_RETURN - * @see PEAR_ERROR_PRINT - * @see PEAR_ERROR_TRIGGER - * @see PEAR_ERROR_DIE - * @see PEAR_ERROR_CALLBACK - * @see PEAR_ERROR_EXCEPTION - * - * @since PHP 4.0.5 - */ - - function setErrorHandling($mode = null, $options = null) - { - if (isset($this) && is_a($this, 'PEAR')) { - $setmode = &$this->_default_error_mode; - $setoptions = &$this->_default_error_options; - } else { - $setmode = &$GLOBALS['_PEAR_default_error_mode']; - $setoptions = &$GLOBALS['_PEAR_default_error_options']; - } - - switch ($mode) { - case PEAR_ERROR_EXCEPTION: - case PEAR_ERROR_RETURN: - case PEAR_ERROR_PRINT: - case PEAR_ERROR_TRIGGER: - case PEAR_ERROR_DIE: - case null: - $setmode = $mode; - $setoptions = $options; - break; - - case PEAR_ERROR_CALLBACK: - $setmode = $mode; - // class/object method callback - if (is_callable($options)) { - $setoptions = $options; - } else { - trigger_error("invalid error callback", E_USER_WARNING); - } - break; - - default: - trigger_error("invalid error mode", E_USER_WARNING); - break; - } - } - - // }}} - // {{{ expectError() - - /** - * This method is used to tell which errors you expect to get. - * Expected errors are always returned with error mode - * PEAR_ERROR_RETURN. Expected error codes are stored in a stack, - * and this method pushes a new element onto it. The list of - * expected errors are in effect until they are popped off the - * stack with the popExpect() method. - * - * Note that this method can not be called statically - * - * @param mixed $code a single error code or an array of error codes to expect - * - * @return int the new depth of the "expected errors" stack - * @access public - */ - function expectError($code = '*') - { - if (is_array($code)) { - array_push($this->_expected_errors, $code); - } else { - array_push($this->_expected_errors, array($code)); - } - return sizeof($this->_expected_errors); - } - - // }}} - // {{{ popExpect() - - /** - * This method pops one element off the expected error codes - * stack. - * - * @return array the list of error codes that were popped - */ - function popExpect() - { - return array_pop($this->_expected_errors); - } - - // }}} - // {{{ _checkDelExpect() - - /** - * This method checks unsets an error code if available - * - * @param mixed error code - * @return bool true if the error code was unset, false otherwise - * @access private - * @since PHP 4.3.0 - */ - function _checkDelExpect($error_code) - { - $deleted = false; - - foreach ($this->_expected_errors AS $key => $error_array) { - if (in_array($error_code, $error_array)) { - unset($this->_expected_errors[$key][array_search($error_code, $error_array)]); - $deleted = true; - } - - // clean up empty arrays - if (0 == count($this->_expected_errors[$key])) { - unset($this->_expected_errors[$key]); - } - } - return $deleted; - } - - // }}} - // {{{ delExpect() - - /** - * This method deletes all occurences of the specified element from - * the expected error codes stack. - * - * @param mixed $error_code error code that should be deleted - * @return mixed list of error codes that were deleted or error - * @access public - * @since PHP 4.3.0 - */ - function delExpect($error_code) - { - $deleted = false; - - if ((is_array($error_code) && (0 != count($error_code)))) { - // $error_code is a non-empty array here; - // we walk through it trying to unset all - // values - foreach($error_code as $key => $error) { - if ($this->_checkDelExpect($error)) { - $deleted = true; - } else { - $deleted = false; - } - } - return $deleted ? true : PEAR::raiseError("The expected error you submitted does not exist"); // IMPROVE ME - } elseif (!empty($error_code)) { - // $error_code comes alone, trying to unset it - if ($this->_checkDelExpect($error_code)) { - return true; - } else { - return PEAR::raiseError("The expected error you submitted does not exist"); // IMPROVE ME - } - } else { - // $error_code is empty - return PEAR::raiseError("The expected error you submitted is empty"); // IMPROVE ME - } - } - - // }}} - // {{{ raiseError() - - /** - * This method is a wrapper that returns an instance of the - * configured error class with this object's default error - * handling applied. If the $mode and $options parameters are not - * specified, the object's defaults are used. - * - * @param mixed $message a text error message or a PEAR error object - * - * @param int $code a numeric error code (it is up to your class - * to define these if you want to use codes) - * - * @param int $mode One of PEAR_ERROR_RETURN, PEAR_ERROR_PRINT, - * PEAR_ERROR_TRIGGER, PEAR_ERROR_DIE, - * PEAR_ERROR_CALLBACK, PEAR_ERROR_EXCEPTION. - * - * @param mixed $options If $mode is PEAR_ERROR_TRIGGER, this parameter - * specifies the PHP-internal error level (one of - * E_USER_NOTICE, E_USER_WARNING or E_USER_ERROR). - * If $mode is PEAR_ERROR_CALLBACK, this - * parameter specifies the callback function or - * method. In other error modes this parameter - * is ignored. - * - * @param string $userinfo If you need to pass along for example debug - * information, this parameter is meant for that. - * - * @param string $error_class The returned error object will be - * instantiated from this class, if specified. - * - * @param bool $skipmsg If true, raiseError will only pass error codes, - * the error message parameter will be dropped. - * - * @access public - * @return object a PEAR error object - * @see PEAR::setErrorHandling - * @since PHP 4.0.5 - */ - function &raiseError($message = null, - $code = null, - $mode = null, - $options = null, - $userinfo = null, - $error_class = null, - $skipmsg = false) - { - // The error is yet a PEAR error object - if (is_object($message)) { - $code = $message->getCode(); - $userinfo = $message->getUserInfo(); - $error_class = $message->getType(); - $message->error_message_prefix = ''; - $message = $message->getMessage(); - } - - if (isset($this) && isset($this->_expected_errors) && sizeof($this->_expected_errors) > 0 && sizeof($exp = end($this->_expected_errors))) { - if ($exp[0] == "*" || - (is_int(reset($exp)) && in_array($code, $exp)) || - (is_string(reset($exp)) && in_array($message, $exp))) { - $mode = PEAR_ERROR_RETURN; - } - } - // No mode given, try global ones - if ($mode === null) { - // Class error handler - if (isset($this) && isset($this->_default_error_mode)) { - $mode = $this->_default_error_mode; - $options = $this->_default_error_options; - // Global error handler - } elseif (isset($GLOBALS['_PEAR_default_error_mode'])) { - $mode = $GLOBALS['_PEAR_default_error_mode']; - $options = $GLOBALS['_PEAR_default_error_options']; - } - } - - if ($error_class !== null) { - $ec = $error_class; - } elseif (isset($this) && isset($this->_error_class)) { - $ec = $this->_error_class; - } else { - $ec = 'PEAR_Error'; - } - if (intval(PHP_VERSION) < 5) { - // little non-eval hack to fix bug #12147 - include 'PEAR/FixPHP5PEARWarnings.php'; - return $a; - } - if ($skipmsg) { - $a = new $ec($code, $mode, $options, $userinfo); - } else { - $a = new $ec($message, $code, $mode, $options, $userinfo); - } - return $a; - } - - // }}} - // {{{ throwError() - - /** - * Simpler form of raiseError with fewer options. In most cases - * message, code and userinfo are enough. - * - * @param string $message - * - */ - function &throwError($message = null, - $code = null, - $userinfo = null) - { - if (isset($this) && is_a($this, 'PEAR')) { - $a = &$this->raiseError($message, $code, null, null, $userinfo); - return $a; - } else { - $a = &PEAR::raiseError($message, $code, null, null, $userinfo); - return $a; - } - } - - // }}} - function staticPushErrorHandling($mode, $options = null) - { - $stack = &$GLOBALS['_PEAR_error_handler_stack']; - $def_mode = &$GLOBALS['_PEAR_default_error_mode']; - $def_options = &$GLOBALS['_PEAR_default_error_options']; - $stack[] = array($def_mode, $def_options); - switch ($mode) { - case PEAR_ERROR_EXCEPTION: - case PEAR_ERROR_RETURN: - case PEAR_ERROR_PRINT: - case PEAR_ERROR_TRIGGER: - case PEAR_ERROR_DIE: - case null: - $def_mode = $mode; - $def_options = $options; - break; - - case PEAR_ERROR_CALLBACK: - $def_mode = $mode; - // class/object method callback - if (is_callable($options)) { - $def_options = $options; - } else { - trigger_error("invalid error callback", E_USER_WARNING); - } - break; - - default: - trigger_error("invalid error mode", E_USER_WARNING); - break; - } - $stack[] = array($mode, $options); - return true; - } - - function staticPopErrorHandling() - { - $stack = &$GLOBALS['_PEAR_error_handler_stack']; - $setmode = &$GLOBALS['_PEAR_default_error_mode']; - $setoptions = &$GLOBALS['_PEAR_default_error_options']; - array_pop($stack); - list($mode, $options) = $stack[sizeof($stack) - 1]; - array_pop($stack); - switch ($mode) { - case PEAR_ERROR_EXCEPTION: - case PEAR_ERROR_RETURN: - case PEAR_ERROR_PRINT: - case PEAR_ERROR_TRIGGER: - case PEAR_ERROR_DIE: - case null: - $setmode = $mode; - $setoptions = $options; - break; - - case PEAR_ERROR_CALLBACK: - $setmode = $mode; - // class/object method callback - if (is_callable($options)) { - $setoptions = $options; - } else { - trigger_error("invalid error callback", E_USER_WARNING); - } - break; - - default: - trigger_error("invalid error mode", E_USER_WARNING); - break; - } - return true; - } - - // {{{ pushErrorHandling() - - /** - * Push a new error handler on top of the error handler options stack. With this - * you can easily override the actual error handler for some code and restore - * it later with popErrorHandling. - * - * @param mixed $mode (same as setErrorHandling) - * @param mixed $options (same as setErrorHandling) - * - * @return bool Always true - * - * @see PEAR::setErrorHandling - */ - function pushErrorHandling($mode, $options = null) - { - $stack = &$GLOBALS['_PEAR_error_handler_stack']; - if (isset($this) && is_a($this, 'PEAR')) { - $def_mode = &$this->_default_error_mode; - $def_options = &$this->_default_error_options; - } else { - $def_mode = &$GLOBALS['_PEAR_default_error_mode']; - $def_options = &$GLOBALS['_PEAR_default_error_options']; - } - $stack[] = array($def_mode, $def_options); - - if (isset($this) && is_a($this, 'PEAR')) { - $this->setErrorHandling($mode, $options); - } else { - PEAR::setErrorHandling($mode, $options); - } - $stack[] = array($mode, $options); - return true; - } - - // }}} - // {{{ popErrorHandling() - - /** - * Pop the last error handler used - * - * @return bool Always true - * - * @see PEAR::pushErrorHandling - */ - function popErrorHandling() - { - $stack = &$GLOBALS['_PEAR_error_handler_stack']; - array_pop($stack); - list($mode, $options) = $stack[sizeof($stack) - 1]; - array_pop($stack); - if (isset($this) && is_a($this, 'PEAR')) { - $this->setErrorHandling($mode, $options); - } else { - PEAR::setErrorHandling($mode, $options); - } - return true; - } - - // }}} - // {{{ loadExtension() - - /** - * OS independant PHP extension load. Remember to take care - * on the correct extension name for case sensitive OSes. - * - * @param string $ext The extension name - * @return bool Success or not on the dl() call - */ - function loadExtension($ext) - { - if (!extension_loaded($ext)) { - // if either returns true dl() will produce a FATAL error, stop that - if ((ini_get('enable_dl') != 1) || (ini_get('safe_mode') == 1)) { - return false; - } - if (OS_WINDOWS) { - $suffix = '.dll'; - } elseif (PHP_OS == 'HP-UX') { - $suffix = '.sl'; - } elseif (PHP_OS == 'AIX') { - $suffix = '.a'; - } elseif (PHP_OS == 'OSX') { - $suffix = '.bundle'; - } else { - $suffix = '.so'; - } - return @dl('php_'.$ext.$suffix) || @dl($ext.$suffix); - } - return true; - } - - // }}} -} - -// {{{ _PEAR_call_destructors() - -function _PEAR_call_destructors() -{ - global $_PEAR_destructor_object_list; - if (is_array($_PEAR_destructor_object_list) && - sizeof($_PEAR_destructor_object_list)) - { - reset($_PEAR_destructor_object_list); - if (PEAR::getStaticProperty('PEAR', 'destructlifo')) { - $_PEAR_destructor_object_list = array_reverse($_PEAR_destructor_object_list); - } - while (list($k, $objref) = each($_PEAR_destructor_object_list)) { - $classname = get_class($objref); - while ($classname) { - $destructor = "_$classname"; - if (method_exists($objref, $destructor)) { - $objref->$destructor(); - break; - } else { - $classname = get_parent_class($classname); - } - } - } - // Empty the object list to ensure that destructors are - // not called more than once. - $_PEAR_destructor_object_list = array(); - } - - // Now call the shutdown functions - if (is_array($GLOBALS['_PEAR_shutdown_funcs']) AND !empty($GLOBALS['_PEAR_shutdown_funcs'])) { - foreach ($GLOBALS['_PEAR_shutdown_funcs'] as $value) { - call_user_func_array($value[0], $value[1]); - } - } -} - -// }}} -/** - * Standard PEAR error class for PHP 4 - * - * This class is supserseded by {@link PEAR_Exception} in PHP 5 - * - * @category pear - * @package PEAR - * @author Stig Bakken - * @author Tomas V.V. Cox - * @author Gregory Beaver - * @copyright 1997-2006 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version Release: 1.7.1 - * @link http://pear.php.net/manual/en/core.pear.pear-error.php - * @see PEAR::raiseError(), PEAR::throwError() - * @since Class available since PHP 4.0.2 - */ -class PEAR_Error -{ - // {{{ properties - - var $error_message_prefix = ''; - var $mode = PEAR_ERROR_RETURN; - var $level = E_USER_NOTICE; - var $code = -1; - var $message = ''; - var $userinfo = ''; - var $backtrace = null; - - // }}} - // {{{ constructor - - /** - * PEAR_Error constructor - * - * @param string $message message - * - * @param int $code (optional) error code - * - * @param int $mode (optional) error mode, one of: PEAR_ERROR_RETURN, - * PEAR_ERROR_PRINT, PEAR_ERROR_DIE, PEAR_ERROR_TRIGGER, - * PEAR_ERROR_CALLBACK or PEAR_ERROR_EXCEPTION - * - * @param mixed $options (optional) error level, _OR_ in the case of - * PEAR_ERROR_CALLBACK, the callback function or object/method - * tuple. - * - * @param string $userinfo (optional) additional user/debug info - * - * @access public - * - */ - function PEAR_Error($message = 'unknown error', $code = null, - $mode = null, $options = null, $userinfo = null) - { - if ($mode === null) { - $mode = PEAR_ERROR_RETURN; - } - $this->message = $message; - $this->code = $code; - $this->mode = $mode; - $this->userinfo = $userinfo; - if (!PEAR::getStaticProperty('PEAR_Error', 'skiptrace')) { - $this->backtrace = debug_backtrace(); - if (isset($this->backtrace[0]) && isset($this->backtrace[0]['object'])) { - unset($this->backtrace[0]['object']); - } - } - if ($mode & PEAR_ERROR_CALLBACK) { - $this->level = E_USER_NOTICE; - $this->callback = $options; - } else { - if ($options === null) { - $options = E_USER_NOTICE; - } - $this->level = $options; - $this->callback = null; - } - if ($this->mode & PEAR_ERROR_PRINT) { - if (is_null($options) || is_int($options)) { - $format = "%s"; - } else { - $format = $options; - } - printf($format, $this->getMessage()); - } - if ($this->mode & PEAR_ERROR_TRIGGER) { - trigger_error($this->getMessage(), $this->level); - } - if ($this->mode & PEAR_ERROR_DIE) { - $msg = $this->getMessage(); - if (is_null($options) || is_int($options)) { - $format = "%s"; - if (substr($msg, -1) != "\n") { - $msg .= "\n"; - } - } else { - $format = $options; - } - die(sprintf($format, $msg)); - } - if ($this->mode & PEAR_ERROR_CALLBACK) { - if (is_callable($this->callback)) { - call_user_func($this->callback, $this); - } - } - if ($this->mode & PEAR_ERROR_EXCEPTION) { - trigger_error("PEAR_ERROR_EXCEPTION is obsolete, use class PEAR_Exception for exceptions", E_USER_WARNING); - eval('$e = new Exception($this->message, $this->code);throw($e);'); - } - } - - // }}} - // {{{ getMode() - - /** - * Get the error mode from an error object. - * - * @return int error mode - * @access public - */ - function getMode() { - return $this->mode; - } - - // }}} - // {{{ getCallback() - - /** - * Get the callback function/method from an error object. - * - * @return mixed callback function or object/method array - * @access public - */ - function getCallback() { - return $this->callback; - } - - // }}} - // {{{ getMessage() - - - /** - * Get the error message from an error object. - * - * @return string full error message - * @access public - */ - function getMessage() - { - return ($this->error_message_prefix . $this->message); - } - - - // }}} - // {{{ getCode() - - /** - * Get error code from an error object - * - * @return int error code - * @access public - */ - function getCode() - { - return $this->code; - } - - // }}} - // {{{ getType() - - /** - * Get the name of this error/exception. - * - * @return string error/exception name (type) - * @access public - */ - function getType() - { - return get_class($this); - } - - // }}} - // {{{ getUserInfo() - - /** - * Get additional user-supplied information. - * - * @return string user-supplied information - * @access public - */ - function getUserInfo() - { - return $this->userinfo; - } - - // }}} - // {{{ getDebugInfo() - - /** - * Get additional debug information supplied by the application. - * - * @return string debug information - * @access public - */ - function getDebugInfo() - { - return $this->getUserInfo(); - } - - // }}} - // {{{ getBacktrace() - - /** - * Get the call backtrace from where the error was generated. - * Supported with PHP 4.3.0 or newer. - * - * @param int $frame (optional) what frame to fetch - * @return array Backtrace, or NULL if not available. - * @access public - */ - function getBacktrace($frame = null) - { - if (defined('PEAR_IGNORE_BACKTRACE')) { - return null; - } - if ($frame === null) { - return $this->backtrace; - } - return $this->backtrace[$frame]; - } - - // }}} - // {{{ addUserInfo() - - function addUserInfo($info) - { - if (empty($this->userinfo)) { - $this->userinfo = $info; - } else { - $this->userinfo .= " ** $info"; - } - } - - // }}} - // {{{ toString() - function __toString() - { - return $this->getMessage(); - } - // }}} - // {{{ toString() - - /** - * Make a string representation of this object. - * - * @return string a string with an object summary - * @access public - */ - function toString() { - $modes = array(); - $levels = array(E_USER_NOTICE => 'notice', - E_USER_WARNING => 'warning', - E_USER_ERROR => 'error'); - if ($this->mode & PEAR_ERROR_CALLBACK) { - if (is_array($this->callback)) { - $callback = (is_object($this->callback[0]) ? - strtolower(get_class($this->callback[0])) : - $this->callback[0]) . '::' . - $this->callback[1]; - } else { - $callback = $this->callback; - } - return sprintf('[%s: message="%s" code=%d mode=callback '. - 'callback=%s prefix="%s" info="%s"]', - strtolower(get_class($this)), $this->message, $this->code, - $callback, $this->error_message_prefix, - $this->userinfo); - } - if ($this->mode & PEAR_ERROR_PRINT) { - $modes[] = 'print'; - } - if ($this->mode & PEAR_ERROR_TRIGGER) { - $modes[] = 'trigger'; - } - if ($this->mode & PEAR_ERROR_DIE) { - $modes[] = 'die'; - } - if ($this->mode & PEAR_ERROR_RETURN) { - $modes[] = 'return'; - } - return sprintf('[%s: message="%s" code=%d mode=%s level=%s '. - 'prefix="%s" info="%s"]', - strtolower(get_class($this)), $this->message, $this->code, - implode("|", $modes), $levels[$this->level], - $this->error_message_prefix, - $this->userinfo); - } - - // }}} -} - -/* - * Local Variables: - * mode: php - * tab-width: 4 - * c-basic-offset: 4 - * End: - */ -?> diff --git a/_dev/_thirdparty/jsl/jsl b/_dev/_thirdparty/jsl/jsl deleted file mode 100644 index 97d177347e..0000000000 Binary files a/_dev/_thirdparty/jsl/jsl and /dev/null differ diff --git a/_dev/_thirdparty/jsl/jsl.exe b/_dev/_thirdparty/jsl/jsl.exe deleted file mode 100644 index 30dbd14ac5..0000000000 Binary files a/_dev/_thirdparty/jsl/jsl.exe and /dev/null differ diff --git a/_dev/docs_build/docs_build.bat b/_dev/docs_build/docs_build.bat deleted file mode 100644 index 2c4b72d595..0000000000 --- a/_dev/docs_build/docs_build.bat +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO OFF -:: -:: Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. -:: For licensing, see LICENSE.html or http://ckeditor.com/license -:: -:: Builds the documentation files. -:: - -ECHO Building the API document into the api_docs directory... - -del /F /Q "api_docs/*.*" - -java -jar ../_thirdparty/jsdoc-toolkit/jsrun.jar ../_thirdparty/jsdoc-toolkit/app/run.js -c=docs_build.conf - -:: php ../fixlineends/fixlineends.php --eolstripwhite --eofnewline --eofstripwhite --nohidden --nosystem api_docs/ - -ECHO Finished! diff --git a/_dev/docs_build/docs_build.conf b/_dev/docs_build/docs_build.conf deleted file mode 100644 index bdef06142a..0000000000 --- a/_dev/docs_build/docs_build.conf +++ /dev/null @@ -1,44 +0,0 @@ -/* - This is an example of one way you could set up a configuration file to more - conveniently define some commandline options. You might like to do this if - you frequently reuse the same options. Note that you don't need to define - every option in this file, you can combine a configuration file with - additional options on the commandline if your wish. - - You would include this configuration file by running JsDoc Toolkit like so: - java -jar jsrun.jar app/run.js -c=conf/sample.conf - -*/ - -{ - // Source files to parse. - _: - [ - '../../_source/core/', - '../../_source/adapters/', - '../../_source/plugins/', - '../../_source/skins/kama/skin.js', - '../../_source/themes/default/theme.js' - ], - - // Files to exclude. - E: - [ - 'yui.js' - ], - - // Document all functions, even uncommented ones. - a: true, - - // Recursively, up to 100 directories depth. - r: 100, - - // use this directory as the output directory - d: 'api_docs', - - // Template. - t: 'template', - - // Verbose mode. - v: true -} diff --git a/_dev/docs_build/template/allclasses.tmpl b/_dev/docs_build/template/allclasses.tmpl deleted file mode 100644 index 3c4665de67..0000000000 --- a/_dev/docs_build/template/allclasses.tmpl +++ /dev/null @@ -1,26 +0,0 @@ -
- {+new Link().toFile("index.html").withText("Code Index")+} - | {+new Link().toFile("files.html").withText("File Index")+} -
-
-

Namespaces

-
    - - -
  • - {+ new Link().toClass(thisClass.alias) +} -
  • -
    -
    -
-

Classes

-
    - - -
  • - {+ new Link().toClass(thisClass.alias) +} -
  • -
    -
    -
-
\ No newline at end of file diff --git a/_dev/docs_build/template/allfiles.tmpl b/_dev/docs_build/template/allfiles.tmpl deleted file mode 100644 index 7c9398e446..0000000000 --- a/_dev/docs_build/template/allfiles.tmpl +++ /dev/null @@ -1,53 +0,0 @@ - - - - - {! Link.base = ""; /* all generated links will be relative to this */ !} - File Index - CKEditor 3 JavaScript API Documentation - - - - - - - {+include("static/header.html")+} - -
- {+publish.classesIndex+} -
- -
-

File Index

- - -
-

{+new Link().toSrc(item.alias).withText(item.name)+}

- {+resolveLinks(item.desc)+} -
- -
Author:
-
{+item.author+}
-
- -
Version:
-
{+item.version+}
-
- {! var locations = item.comment.getTag('location').map(function($){return $.toString().replace(/(^\$ ?| ?\$$)/g, '').replace(/^HeadURL: https:/g, 'http:');}) !} - -
Location:
- -
{+location+}
-
-
-
-
-
-
- -
- {+include("static/footer.html")+} - - \ No newline at end of file diff --git a/_dev/docs_build/template/class.tmpl b/_dev/docs_build/template/class.tmpl deleted file mode 100644 index 2364f626c1..0000000000 --- a/_dev/docs_build/template/class.tmpl +++ /dev/null @@ -1,710 +0,0 @@ - - - - - - {! Link.base = "../"; /* all generated links will be relative to this */ !} - {+data.alias+} - CKEditor 3 JavaScript API Documentation - - - - - - - - {+include("static/header.html")+} - - - -
- - {+publish.classesIndex+} - -
- -
- -

- {! - var classType = ""; - - if (data.isBuiltin()) { - classType += "Built-In "; - } - - if (data.isNamespace) { - if (data.is('FUNCTION')) { - classType += "Function "; - } - classType += "Namespace "; - } - else { - classType += "Class "; - } - !} - {+classType+}{+data.alias+} -

- - -

-
Version - {+ data.version +}.
-
- - {+resolveLinks(data.classDesc)+} - -
Extends - {+ - data.augments - .sort() - .map( - function($) { return new Link().toSymbol($); } - ) - .join(", ") - +}. -
- - {# isn't defined in any file #} -
Defined in: {+ ckeditor_FileLink( data.srcFile ) +}. -
-

- - - - - - - - - - - - - - - - - -
{+classType+}Summary
Constructor AttributesConstructor Name and Description
{! - if (data.isPrivate) output += "<private> "; - if (data.isInner) output += "<inner> "; - !}  -
- {+ new Link().toSymbol(data.alias).inner('constructor')+}{+ makeSignature(data.params) +} -
-
{+resolveLinks(summarize(data.desc))+}
-
-
- - - - - {! var ownConstants = data.properties.filter(function($){return $.memberOf == data.alias && !$.isNamespace && $.isConstant}).sort( ckeditor_sortByType ); !} - - - - - - - - - - - - - - - - - -
Constants Summary
Constant AttributesConstant Name and Description
{! - if (member.isPrivate) output += "<private> "; - if (member.isInner) output += "<inner> "; - if (member.isStatic) output += "<static> "; - !}  -
- {+member.memberOf+}.{+new Link().toSymbol(member.alias).withText(member.name)+} -
-
{+resolveLinks(summarize(member.desc))+}
-
-
- - {! var ownProperties = data.properties.filter(function($){return $.memberOf == data.alias && !$.isNamespace && !$.isConstant}).sort( ckeditor_sortByType ); !} - - - - - - - - - - - - - - - - - -
Field Summary
Field AttributesField Name and Description
{! - if (member.isPrivate) output += "<private> "; - if (member.isInner) output += "<inner> "; - if (member.isStatic) output += "<static> "; - if (member.isConstant) output += "<constant> "; - !}  -
- {+member.memberOf+}.{+new Link().toSymbol(member.alias).withText(member.name)+} -
-
{+resolveLinks(summarize(member.desc))+}
-
-
- - -
- {! - var borrowedMembers = data.properties.filter(function($) {return $.memberOf != data.alias}); - - var contributers = []; - borrowedMembers.map(function($) {if (contributers.indexOf($.memberOf) < 0) contributers.push($.memberOf)}); - for (var i = 0, l = contributers.length; i < l; i++) { - output += - "
Fields borrowed from class "+new Link().toSymbol(contributers[i])+":
" - + - "
" + - borrowedMembers - .filter( - function($) { return $.memberOf == contributers[i] } - ) - .sort(makeSortby("name")) - .map( - function($) { return new Link().toSymbol($.alias).withText($.name) } - ) - .join(", ") - + - "
"; - } - !} -
-
-
- - - - {! var ownMethods = data.methods.filter(function($){return $.memberOf == data.alias && !$.isNamespace}).sort( ckeditor_sortByType ); !} - - - - - - - - - - - - - - - - - -
Method Summary
Method AttributesMethod Name and Description
{! - if (member.isPrivate) output += "<private> "; - if (member.isInner) output += "<inner> "; - if (member.isStatic) output += "<static> "; - !}  -
{+member.memberOf+}.{+new Link().toSymbol(member.alias).withText(member.name.replace(/\^\d+$/, ''))+}{+makeSignature(member.params)+} -
-
{+resolveLinks(summarize(member.desc))+}
-
-
- - -
- {! - var borrowedMembers = data.methods.filter(function($) {return $.memberOf != data.alias}); - var contributers = []; - borrowedMembers.map(function($) {if (contributers.indexOf($.memberOf) < 0) contributers.push($.memberOf)}); - for (var i = 0, l = contributers.length; i < l; i++) { - output += - "
Methods borrowed from class "+new Link().toSymbol(contributers[i])+":
" - + - "
" + - borrowedMembers - .filter( - function($) { return $.memberOf == contributers[i] } - ) - .sort(makeSortby("name")) - .map( - function($) { return new Link().toSymbol($.alias).withText($.name) } - ) - .join(", ") - + - "
"; - } - - !} -
-
-
- - - - {! var ownEvents = data.events.filter(function($){return $.memberOf == data.alias && !$.isNamespace}).sort(makeSortby("name")); !} - - - - - - - - - - - - - - - - - -
Event Summary
Event AttributesEvent Name and Description
{! - if (member.isPrivate) output += "<private> "; - if (member.isInner) output += "<inner> "; - if (member.isStatic) output += "<static> "; - !}  -
{+member.memberOf+}.{+new Link().toSymbol(member.alias).withText(member.name)+} -
-
{+resolveLinks(summarize(member.desc))+}
-
-
- - -
- {! - var borrowedMembers = data.events.filter(function($) {return $.memberOf != data.alias}); - var contributers = []; - borrowedMembers.map(function($) {if (contributers.indexOf($.memberOf) < 0) contributers.push($.memberOf)}); - for (var i = 0, l = contributers.length; i < l; i++) { - output += - "
Events borrowed from class "+new Link().toSymbol(contributers[i])+":
" - + - "
" + - borrowedMembers - .filter( - function($) { return $.memberOf == contributers[i] } - ) - .sort(makeSortby("name")) - .map( - function($) { return new Link().toSymbol($.alias).withText($.name) } - ) - .join(", ") - + - "
"; - } - - !} -
-
-
- - - -
-
- {+classType+}Detail -
- -
{! - if (data.isPrivate) output += "<private> "; - if (data.isInner) output += "<inner> "; - !} - {+ data.alias +}{+ makeSignature(data.params) +} -
- -
- Since: - - {+ data.since +} - - 3.0 - -
-
- -
- {+resolveLinks(data.desc)+} -
Author: {+data.author+}.
-
- - - - -
{+example+}
-
-
- -
NO EXAMPLE AVAILABLE
-
- - - -
-
Parameters:
- -
- {{+ new Link().toSymbol(item.type || 'Undefined') +}} {+item.name+} - Optional, Default: {+item.defaultValue+} -
-
{+resolveLinks(item.desc)+}
-
-
-
- -
-
Deprecated:
-
- {+resolveLinks(data.deprecated)+} -
-
-
- -
-
Throws:
- -
- {{+ new Link().toSymbol(item.type || 'Undefined') +}} {+item.name+} -
-
{+resolveLinks(item.desc)+}
-
-
-
- -
-
Returns:
- -
{{+ new Link().toSymbol(item.type || 'Undefined') +}} {+resolveLinks(item.desc)+}
-
-
-
- -
-
Requires:
- -
{+ resolveLinks(item) +}
-
-
-
- -
-
See:
- -
{+ new Link().toSymbol(item) +}
-
-
-
- -
-
- - - -
- Field Detail -
- - -
{! - if (member.isPrivate) output += "<private> "; - if (member.isInner) output += "<inner> "; - if (member.isStatic) output += "<static> "; - if (member.isConstant) output += "<constant> "; - !} - - {{+ new Link().toSymbol( member.type || 'Undefined') +}} - {+member.memberOf+}.{+member.name+} - -
-
- Since: - - {+ member.since +} - - 3.0 - -
-
-
- {+resolveLinks(member.desc)+} - -
- Defined in: {+ ckeditor_FileLink( member.srcFile ) +}. -
-
Author: {+member.author+}.
-
- - - - -
{+example+}
-
-
- -
NO EXAMPLE AVAILABLE
-
- - -
-
Deprecated:
-
- {+ resolveLinks(member.deprecated) +} -
-
-
- -
-
See:
- -
{+ new Link().toSymbol(item) +}
-
-
-
- -
-
Default Value:
-
- {+resolveLinks(member.defaultValue)+} -
-
-
- -
-
-
- - - -
- Method Detail -
- - -
{! - if (member.isPrivate) output += "<private> "; - if (member.isInner) output += "<inner> "; - if (member.isStatic) output += "<static> "; - !} - - {{+ new Link().toSymbol( member.type || 'Undefined') +}} - {+member.memberOf+}.{+member.name.replace(/\^\d+$/, '')+}{+makeSignature(member.params)+} - -
-
- Since: - - {+ member.since +} - - 3.0 - -
-
-
- {+resolveLinks(member.desc)+} - -
- Defined in: {+ ckeditor_FileLink( member.srcFile ) +}. -
-
Author: {+member.author+}.
-
- - - - -
{+example+}
-
-
- -
NO EXAMPLE AVAILABLE
-
- - -
-
Parameters:
- -
- {{+ new Link().toSymbol(item.type || 'Undefined') +}} {+item.name+} - Optional, Default: {+item.defaultValue+} -
-
{+resolveLinks(item.desc)+}
-
-
-
- -
-
Deprecated:
-
- {+resolveLinks(member.deprecated)+} -
-
-
- -
-
Throws:
- -
- {{+ new Link().toSymbol(item.type || 'Undefined') +}} {+item.name+} -
-
{+resolveLinks(item.desc)+}
-
-
-
- -
-
Returns:
- -
{{+ new Link().toSymbol(item.type || 'Undefined') +}} {+resolveLinks(item.desc)+}
-
-
-
- -
-
Requires:
- -
{+ resolveLinks(item) +}
-
-
-
- -
-
See:
- -
{+ new Link().toSymbol(item) +}
-
-
-
- -
-
-
- - - -
- Event Detail -
- - -
{! - if (member.isPrivate) output += "<private> "; - if (member.isInner) output += "<inner> "; - if (member.isStatic) output += "<static> "; - !} - - {{+new Link().toSymbol(member.type)+}} - {+member.memberOf+}. - {+member.name+} : <object>.{+new Link().toSymbol('CKEDITOR.event#on').withText('on')+}( '{+member.name+}', function( e ){ ... } ) - -
-
- Since: - - {+ member.since +} - - 3.0 - -
-
-
- {+resolveLinks(member.desc)+} - -
- Defined in: {+new Link().toSrc(member.srcFile)+}. -
-
Author: {+member.author+}.
-
- - - - -
{+example+}
-
-
- -
NO EXAMPLE AVAILABLE
-
- -
-
Parameters:
-
- {{+new Link().toSymbol('CKEDITOR.eventInfo')+}} e -
-
The standard event object passed to event listeners.
- - -
- {+((item.type)?"{"+(new Link().toSymbol(item.type))+"} " : "")+}e.{+item.name+} - Optional, Default: {+item.defaultValue+} -
-
{+ resolveLinks(item.desc) +}
-
-
- - -
-
Deprecated:
-
- {+ resolveLinks(member.deprecated) +} -
-
-
- -
-
Throws:
- -
- {+((item.type)?"{"+(new Link().toSymbol(item.type))+"} " : "")+} {+item.name+} -
-
{+ resolveLinks(item.desc) +}
-
-
-
- -
-
Returns:
- -
{+((item.type)?"{"+(new Link().toSymbol(item.type))+"} " : "")+}{+resolveLinks(item.desc)+}
-
-
-
- -
-
Requires:
- -
{+ resolveLinks(item) +}
-
-
-
- -
-
See:
- -
{+ new Link().toSymbol(item) +}
-
-
-
- -
-
-
- -
-
- - - {+include("static/footer.html")+} - - diff --git a/_dev/docs_build/template/index.tmpl b/_dev/docs_build/template/index.tmpl deleted file mode 100644 index c772047f50..0000000000 --- a/_dev/docs_build/template/index.tmpl +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - CKEditor 3 JavaScript API Documentation - - - - - - - {+include("static/header.html")+} - -
- {+publish.classesIndex+} -
- -
-

Namespace Index

- - - -
-

{+(new Link().toSymbol(thisClass.alias))+}

- {+resolveLinks(summarize(thisClass.classDesc))+} -
-
-
-
- -

Class Index

- - - -
-

{+(new Link().toSymbol(thisClass.alias))+}

- {+resolveLinks(summarize(thisClass.classDesc))+} -
-
-
-
- -
- {+include("static/footer.html")+} - - \ No newline at end of file diff --git a/_dev/docs_build/template/publish.js b/_dev/docs_build/template/publish.js deleted file mode 100644 index cc86f4ed07..0000000000 --- a/_dev/docs_build/template/publish.js +++ /dev/null @@ -1,253 +0,0 @@ -/** Called automatically by JsDoc Toolkit. */ - -function publish( symbolSet ) { - publish.conf = { // trailing slash expected for dirs - ext: ".html", - outDir: JSDOC.opt.d || SYS.pwd + "../out/jsdoc/", - templatesDir: ( JSDOC.opt.t && JSDOC.opt.t.replace( /\/+$/, '' ) + '/' ) || SYS.pwd + "../templates/jsdoc/", - symbolsDir: "symbols/", - srcDir: "symbols/src/" - }; - if ( !IO.exists( publish.conf.templatesDir ) ) { - publish.conf.templatesDir = SYS.userDir.replace( /\\/g, '/' ).replace( /\/+$/ ) + '/' + JSDOC.opt.t.replace( /\/+$/, '' ) + '/'; - } - - // is source output is suppressed, just display the links to the source file - if ( JSDOC.opt.s && defined( Link ) && Link.prototype._makeSrcLink ) { - Link.prototype._makeSrcLink = function( srcFilePath ) { - return "<" + srcFilePath + ">"; - } - } - - // create the folders and subfolders to hold the output - IO.mkPath( ( publish.conf.outDir + "symbols/src" ).split( "/" ) ); - - // used to allow Link to check the details of things being linked to - Link.symbolSet = symbolSet; - - // create the required templates - try { - var classTemplate = new JSDOC.JsPlate( publish.conf.templatesDir + "class.tmpl" ); - var classesTemplate = new JSDOC.JsPlate( publish.conf.templatesDir + "allclasses.tmpl" ); - } catch ( e ) { - print( "Couldn't create the required templates: " + e ); - quit(); - } - - // some ustility filters - function hasNoParent( $ ) { - return ( $.memberOf == "" ) - } - - function isaFile( $ ) { - return ( $.is( "FILE" ) ) - } - - function isaClass( $ ) { - return ( $.is( "CONSTRUCTOR" ) || $.isNamespace ) - } - - // get an array version of the symbolset, useful for filtering - var symbols = symbolSet.toArray(); - - // create the hilited source code files - var files = JSDOC.opt.srcFiles; - for ( var i = 0, l = files.length; i < l; i++ ) { - var file = files[ i ]; - var srcDir = publish.conf.outDir + "symbols/src/"; - makeSrcFile( file, srcDir ); - } - - // get a list of all the classes in the symbolset - var classes = symbols.filter( isaClass ).sort( makeSortby( "alias" ) ); - - // create a filemap in which outfiles must be to be named uniquely, ignoring case - if ( JSDOC.opt.u ) { - var filemapCounts = {}; - Link.filemap = {}; - for ( var i = 0, l = classes.length; i < l; i++ ) { - var lcAlias = classes[ i ].alias.toLowerCase(); - - if ( !filemapCounts[ lcAlias ] ) - filemapCounts[ lcAlias ] = 1; - else - filemapCounts[ lcAlias ]++; - - Link.filemap[ classes[ i ].alias ] = ( filemapCounts[ lcAlias ] > 1 ) ? lcAlias + "_" + filemapCounts[ lcAlias ] : lcAlias; - } - } - - // create a class index, displayed in the left-hand column of every class page - Link.base = "../"; - publish.classesIndex = classesTemplate.process( classes ); // kept in memory - - // create each of the class pages - for ( var i = 0, l = classes.length; i < l; i++ ) { - var symbol = classes[ i ]; - - symbol.events = symbol.getEvents(); // 1 order matters - symbol.methods = symbol.getMethods().filter( function( $ ) { - return !$.isInner; - }); // 2 - - var output = ""; - output = classTemplate.process( symbol ); - - IO.saveFile( publish.conf.outDir + "symbols/", ( ( JSDOC.opt.u ) ? Link.filemap[ symbol.alias ] : symbol.alias ) + publish.conf.ext, output ); - } - - // regenerate the index with different relative links, used in the index pages - Link.base = ""; - publish.classesIndex = classesTemplate.process( classes ); - - // create the class index page - try { - var classesindexTemplate = new JSDOC.JsPlate( publish.conf.templatesDir + "index.tmpl" ); - } catch ( e ) { - print( e.message ); - quit(); - } - - var classesIndex = classesindexTemplate.process( classes ); - IO.saveFile( publish.conf.outDir, "index" + publish.conf.ext, classesIndex ); - classesindexTemplate = classesIndex = classes = null; - - // create the file index page - try { - var fileindexTemplate = new JSDOC.JsPlate( publish.conf.templatesDir + "allfiles.tmpl" ); - } catch ( e ) { - print( e.message ); - quit(); - } - - var documentedFiles = symbols.filter( isaFile ); // files that have file-level docs - var allFiles = []; // not all files have file-level docs, but we need to list every one - - for ( var i = 0; i < files.length; i++ ) { - allFiles.push( new JSDOC.Symbol( files[ i ], [], "FILE", new JSDOC.DocComment( "/** */" ) ) ); - } - - for ( var i = 0; i < documentedFiles.length; i++ ) { - var offset = files.indexOf( documentedFiles[ i ].alias ); - allFiles[ offset ] = documentedFiles[ i ]; - } - - //Correct file names in files.html - for ( var i = 0; i < allFiles.length; i++ ) { - allFiles[ i ].alias = allFiles[ i ].alias.replace( /\/\\/, "\\" ).replace( /.*_source(\/|\\)+/, '' ); - allFiles[ i ].name = allFiles[ i ].alias; - } - - allFiles = allFiles.sort( ckeditor_sortFiles ); - - // output the file index page - var filesIndex = fileindexTemplate.process( allFiles ); - IO.saveFile( publish.conf.outDir, "files" + publish.conf.ext, filesIndex ); - fileindexTemplate = filesIndex = files = null; -} - - -/** Just the first sentence (up to a full stop). Should not break on dotted variable names. */ -function summarize( desc ) { - if ( typeof desc != "undefined" ) - return desc.match( /([\w\W]+?\.)[^a-z0-9_$]/i ) ? RegExp.$1 : desc; -} - -/** Make a symbol sorter by some attribute. */ -function makeSortby( attribute ) { - return function( a, b ) { - if ( a[ attribute ] != undefined && b[ attribute ] != undefined ) { - a = a[ attribute ].toLowerCase(); - b = b[ attribute ].toLowerCase(); - if ( a < b ) - return -1; - if ( a > b ) - return 1; - return 0; - } - } -} - -/** Pull in the contents of an external file at the given path. */ -function include( path ) { - var path = publish.conf.templatesDir + path; - return IO.readFile( path ); -} - -/** Turn a raw source file into a code-hilited page in the docs. */ -function makeSrcFile( path, srcDir, name ) { - if ( JSDOC.opt.s ) - return; - - if ( !name ) { - name = path.replace( /.*\.\.?[\\\/](.*)/g, "$1" ).replace( /\/\\/, "\\" ).replace( /[\\\/]/g, "_" ).replace( /.*?_source_/, "" ); - name = name.replace( /\:/g, "_" ); - } - - var src = { path: path, name: name, charset: IO.encoding, hilited: "" }; - - if ( defined( JSDOC.PluginManager ) ) { - JSDOC.PluginManager.run( "onPublishSrc", src ); - } - - if ( src.hilited ) { - IO.saveFile( srcDir, name + publish.conf.ext, src.hilited ); - } -} - -/** Build output for displaying function parameters. */ -function makeSignature( params ) { - if ( !params ) - return "()"; - var signature = "(" + - params.filter( function( $ ) { - return $.name.indexOf( "." ) == -1; // don't show config params in signature - }).map( function( $ ) { - return $.name; - }).join( ", " ) - + - ")"; - return signature; -} - -/** Find symbol {@link ...} strings in text and turn into html links */ -function resolveLinks( str, from ) { - str = str.replace( /\{@link ([^} ]+) ?\}/gi, function( match, symbolName ) { - return new Link().toSymbol( symbolName ); - }); - - return str; -} - -function ckeditor_sortFiles( a, b ) { - a = a.name; - b = b.name; - return a < b ? -1 : a > b ? 1 : 0; -} - -/** Sorts a symbol by its type */ -function ckeditor_sortByType( a, b ) { - var weightA = a.isConstant ? 1 : a.isStatic ? 2 : a.isPrivate ? 3 : a.isInner ? 4 : 5; - - var weightB = b.isConstant ? 1 : b.isStatic ? 2 : b.isPrivate ? 3 : b.isInner ? 4 : 5; - - if ( weightA == weightB ) { - weightA = a.name.toLowerCase(); - weightB = b.name.toLowerCase(); - } - - return weightA < weightB ? -1 : weightA > weightB ? 1 : 0; -} - -function ckeditor_FileLink( filePath ) { - var text = filePath; - - if ( /_source/.test( text ) ) { - text = text.replace( /[\/\\]+/g, '/' ); - text = text.replace( /.*_source(\/|\\)+/, '' ); - - return new Link().toSrc( text ).withText( text ); - } - - return new Link().toSrc( filePath ); -} diff --git a/_dev/docs_build/template/static/default.css b/_dev/docs_build/template/static/default.css deleted file mode 100644 index 7d414bad86..0000000000 --- a/_dev/docs_build/template/static/default.css +++ /dev/null @@ -1,167 +0,0 @@ -/* default.css */ -body -{ - font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif; -} - -.header -{ - clear: both; - background-color: #ccc; - padding: 8px; -} - -h1 -{ - font-size: 150%; - font-weight: bold; - padding: 0; - margin: 1em 0 0 .3em; -} - -hr -{ - border: none 0; - border-top: 1px solid #7F8FB1; - height: 1px; -} - -pre.code -{ - display: block; - padding: 8px; - border: 1px dashed #ccc; -} - -#index -{ - margin-top: 14px; - float: left; - width: 240px; - position: absolute; - left: 2px; - background-color: #F3F3F3; - padding: 8px; -} - -#content -{ - margin-left: 260px; -} - -.classList -{ - list-style-type: none; - padding: 0; - margin: 0 0 0 8px; - font-family: arial, sans-serif; - font-size: 1em; - overflow: auto; -} - -.classList li -{ - padding: 0; - margin: 0 0 8px 0; -} - -.summaryTable { width: 100%; } - -h1.classTitle -{ - font-size:170%; - line-height:130%; -} - -h2 { font-size: 110%; } -caption, div.sectionTitle -{ - background-color: #7F8FB1; - color: #fff; - font-size:130%; - text-align: left; - padding: 2px 6px 2px 6px; - border: 1px #7F8FB1 solid; -} - -div.sectionTitle { margin-bottom: 8px; } -.summaryTable thead { display: none; } - -.summaryTable td -{ - vertical-align: top; - padding: 4px; - border-bottom: 1px #7F8FB1 solid; - border-right: 1px #7F8FB1 solid; -} - -/*col#summaryAttributes {}*/ -.summaryTable td.attributes -{ - border-left: 1px #7F8FB1 solid; - width: 140px; - text-align: right; -} - -td.attributes, .fixedFont -{ - line-height: 15px; - color: #002EBE; - font-family: "Courier New",Courier,monospace; - font-size: 13px; -} - -.summaryTable td.nameDescription -{ - text-align: left; - font-size: 13px; - line-height: 15px; -} - -.summaryTable td.nameDescription, .description -{ - line-height: 15px; - padding: 4px; - padding-left: 4px; -} - -.summaryTable { margin-bottom: 8px; } - -ul.inheritsList -{ - list-style: square; - margin-left: 20px; - padding-left: 0; -} - -.detailList { - margin-left: 20px; - line-height: 15px; -} -.detailList dt { margin-left: 20px; } - -.detailList .heading -{ - font-weight: bold; - padding-bottom: 6px; - margin-left: 0; -} - -.light, td.attributes, .light a:link, .light a:visited -{ - color: #777; - font-style: italic; -} - -.fineprint -{ - text-align: right; - font-size: 10px; -} - -.notapi { - padding:10px; - margin:10px; - border:1px #000 solid; - background:#E0E0E0; -} diff --git a/_dev/docs_build/template/static/footer.html b/_dev/docs_build/template/static/footer.html deleted file mode 100644 index 4b76568682..0000000000 --- a/_dev/docs_build/template/static/footer.html +++ /dev/null @@ -1,3 +0,0 @@ -
- Copyright © 2003-2010, CKSource - Frederico Knabben. All rights reserved. -
diff --git a/_dev/docs_build/template/static/header.html b/_dev/docs_build/template/static/header.html deleted file mode 100644 index a672136d87..0000000000 --- a/_dev/docs_build/template/static/header.html +++ /dev/null @@ -1,4 +0,0 @@ - diff --git a/_dev/docs_build/template/static/index.html b/_dev/docs_build/template/static/index.html deleted file mode 100644 index 69fd1c27a0..0000000000 --- a/_dev/docs_build/template/static/index.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - Generated Javascript Documentation - - - - - - <body> - <p> - This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. - </p> - </body> - - - diff --git a/_dev/docs_build/template/symbol.tmpl b/_dev/docs_build/template/symbol.tmpl deleted file mode 100644 index f8f4bd1f6f..0000000000 --- a/_dev/docs_build/template/symbol.tmpl +++ /dev/null @@ -1,35 +0,0 @@ - - {+data.name+} - {+data.memberOf+} - {+data.isStatic+} - {+data.isa+} - {+data.desc+} - {+data.classDesc+} - - - - {+method.name+} - {+method.memberOf+} - {+method.isStatic+} - {+method.desc+} - - - {+param.type+} - {+param.name+} - {+param.desc+} - {+param.defaultValue+} - - - - - - - - {+property.name+} - {+property.memberOf+} - {+property.isStatic+} - {+property.desc+} - {+property.type+} - - - diff --git a/_dev/dtd_test/dtd_test.html b/_dev/dtd_test/dtd_test.html deleted file mode 100644 index 9ab6b5a888..0000000000 --- a/_dev/dtd_test/dtd_test.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - CKEDITOR.dtd Contents - - - - - -

- CKEDITOR.dtd Contents -

- - -
- - diff --git a/_dev/fixlineends/fixlineends.bat b/_dev/fixlineends/fixlineends.bat deleted file mode 100644 index 058552457a..0000000000 --- a/_dev/fixlineends/fixlineends.bat +++ /dev/null @@ -1,7 +0,0 @@ -@ECHO OFF -:: -:: Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. -:: For licensing, see LICENSE.html or http://ckeditor.com/license -:: - -php fixlineends.php --excluderegex=/(?:_dev[\\\/]_thirdparty)/ --eolstripwhite --eofnewline --eofstripwhite --nohidden --nosystem --fixbom ../../ diff --git a/_dev/fixlineends/fixlineends.php b/_dev/fixlineends/fixlineends.php deleted file mode 100644 index d3861b2b4e..0000000000 --- a/_dev/fixlineends/fixlineends.php +++ /dev/null @@ -1,646 +0,0 @@ -#!/usr/bin/php -q -regex=$regex; - } - public function accept() - { - return !preg_match($this->regex, $this->current()); - } -} - -/** - * Filter file list using regular expression - * - */ -class RegexFilter extends FilterIterator -{ - protected $regex; - public function __construct(Iterator $it, $regex) - { - parent::__construct($it); - $this->regex=$regex; - } - public function accept() - { - return preg_match($this->regex, $this->current()); - } -} - -/** - * Filter file list by depth - * - */ -class DepthFilter extends FilterIterator -{ - protected $depth; - public function __construct(Iterator $it, $depth) - { - parent::__construct($it); - $this->depth=$depth; - } - public function accept() - { - return $this->getInnerIterator()->getDepth()<$this->depth; - } -} - -/** - * Fix new line characters in given file - * Returns true if file was changed - * - * @param string $path relative or absolute path name to file - * @param string $nl name of a constant that holds new line character (CRLF|CR|LF) - * @return bool - */ -function fixFile($path, $nl) { - - $contents = file($path); - $size = filesize($path); - if ($contents === false) { - echo "\rERROR: couldn't read the " . $path . " file". "\n"; - return false; - } - - $modified = false; - $new_content = ""; - $contents_len = sizeof($contents); - - if ($GLOBALS['eofstripwhite']) { - $lines_processed=0; - //iterate through lines, from the end of file - for ($i=$contents_len-1; $i>=0; $i--) { - $old_line = $contents[$i]; - $contents[$i] = rtrim($contents[$i]); - if ($old_line !== $contents[$i]) { - if (!$GLOBALS['eofnewline'] || $old_line !== $contents[$i] . constant($nl) || $lines_processed>0) { - $modified = true; - } - } - - if (empty($contents[$i])) { - //we have an empty line at the end of file, just skip it - unset($contents[$contents_len--]); - } - else { - if ($GLOBALS['eofnewline']) { - $contents[$i] .= constant($nl); - if ($old_line !== $contents[$i]) { - $modified = true; - } - } - //we have found non-empty line, there is no need to go further - break; - } - $lines_processed++; - } - } - - for ($i=0; $i<$contents_len; $i++) { - $is_last_line = ($i == $contents_len-1); - $line = $contents[$i]; - - switch ($nl) - { - case 'CRLF': - if (substr($line, -2) !== CRLF) { - if (substr($line, -1) === LF || substr($line, -1) === CR) { - $line = substr($line, 0, -1) . CRLF; - $modified = true; - } - elseif(strlen($line)) { - if (!$is_last_line) { - echo "\rERROR: wrong line ending: " . $path . "@line " . ($i+1) . "\n"; - return false; - } - elseif(!$GLOBALS['eofstripwhite']) { - $line = $line . CRLF; - $modified = true; - } - } - } - break; - - case 'CR': - if (substr($line, -1) !== CR) { - if (substr($line, -1) === LF) { - $line = substr($line, 0, -1) . CR; - $modified = true; - } - elseif(strlen($line)) { - if (!$is_last_line) { - echo "\rERROR: wrong line ending: " . $path . "@line " . ($i+1) . "\n"; - return false; - } - elseif(!$GLOBALS['eofstripwhite']) { - $line = $line . CR; - $modified = true; - } - } - } - break; - - case 'LF': - if (substr($line, -2) === CRLF) { - $line = substr($line, 0, -2) . LF; - $modified = true; - } - elseif (substr($line, -1) !== LF) { - if (substr($line, -1) === CR) { - $line = substr($line, 0, -1) . LF; - $modified = true; - } - elseif(strlen($line)) { - if (!$is_last_line) { - echo "\rERROR: wrong line ending: " . $path . "@line " . ($i+1) . "\n"; - return false; - } - elseif(!$GLOBALS['eofstripwhite']) { - $line = $line . LF; - $modified = true; - } - } - } - break; - } - if ($GLOBALS['eolstripwhite']) { - $before = strlen($line); - $line = preg_replace("/(?:\x09|\x20)+((?:\r|\n)+)$/", "$1", $line); - if (strlen($line) != $before) { - $modified = true; - } - } - $new_content .= $line; - } - - if ($GLOBALS['fixbom']) { - $before_fixing = $new_content; - $ext = strtolower(substr($path, strrpos($path, ".") + 1)); - $new_content = stripUtf8Bom( $new_content ); - if (!empty($GLOBALS['bom'][$ext])) { - $new_content = "\xEF\xBB\xBF" . $new_content; // BOM - } - if ($new_content != $before_fixing) - $modified = true; - } - - if ($modified) { - $fp = fopen($path, "wb"); - if (!$fp) { - echo "\rERROR: couldn't open the " . $path . " file". "\n"; - return false; - } - else { - if (flock($fp, LOCK_EX)) { - fwrite($fp, $new_content); - flock($fp, LOCK_UN); - echo "\rMODIFIED to " . $nl . ": " . $path ; - if ($GLOBALS['eolstripwhite']) { - $saved = $size - strlen($new_content); - $GLOBALS['saved_bytes'] += $saved; - if ($saved>0) { - echo " (saved " . $saved . "B)"; - } - else if ($saved<0) { - echo " (" . abs($saved) . "B added)"; - } - } - echo "\n"; - } else { - echo "\rERROR: couldn't lock the " . $path . " file". "\n"; - return false; - } - fclose($fp); - } - } - - return $modified; -} - -/** - * Strip BOM from a string - * @param string $data - */ -function stripUtf8Bom( $data ) -{ - if ( substr( $data, 0, 3 ) == "\xEF\xBB\xBF" ) - return stripUtf8Bom(substr_replace( $data, '', 0, 3 )) ; - - return $data ; -} - -/** - * Fix ending lines in all files at given path - * - * @param string $path - */ -function fixPath($path) -{ - if (is_file($path)) { - $ext = strtolower(substr($path, strrpos($path, "."))); - foreach (array('CRLF', 'LF', 'CR') as $nl) { - //find out what's the correct line ending and fix file - //no need to process further - if (in_array($ext, $GLOBALS['extList'][$nl])) { - echo "Fixing single file:\n"; - fixFile($path, $nl); - break; - } - } - - } - else { - $dir = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path), true); - - if ($GLOBALS['maxdepth'] > -1) { - $dir = new DepthFilter($dir, $GLOBALS['maxdepth']+1); - } - - $dir = new NegRegexFilter($dir, "/\/(\.svn|CVS)/"); - - if ($GLOBALS['excluderegex']) { - $dir = new NegRegexFilter($dir, $GLOBALS['excluderegex']); - } - - foreach (array('CRLF', 'LF', 'CR') as $nl) { - - $filtered_dir = new RegexFilter($dir, "/\.(".implode("|", $GLOBALS['extList'][$nl]).")$/i"); - - $extensions = array(); - $j = 0; - $progressbar = "|/-\\"; - foreach ($filtered_dir as $file) { - if (!is_dir($file)) { - $basename = basename($file); - - //skip dot files - if ($GLOBALS['nodotfiles']) { - if (strpos($basename, ".") === 0) { - continue; - } - } - - if ($GLOBALS['windows']) { - $attribs = trim(substr(shell_exec("attrib " . $file), 0, 5)); - //skip archive files - if ($GLOBALS['noarchive'] && false !== strpos($attribs, "A")) { - print "\r ".$progressbar[$j++ % 4]. " ". str_pad(basename($file), 35, " ", STR_PAD_RIGHT)." SKIPPED"; - continue; - } - //skip hidden files - if ($GLOBALS['nohidden'] && false !== strpos($attribs, "H")) { - print "\r ".$progressbar[$j++ % 4]. " ". str_pad(basename($file), 35, " ", STR_PAD_RIGHT)." SKIPPED"; - continue; - } - //skip system files - if ($GLOBALS['nosystem'] && false !== strpos($attribs, "S")) { - print "\r ".$progressbar[$j++ % 4]. " ". str_pad(basename($file), 35, " ", STR_PAD_RIGHT)." SKIPPED"; - continue; - } - } - - fixFile($file, $nl); - print "\r ".$progressbar[$j++ % 4]. " ". str_pad(basename($file), 35, " ", STR_PAD_RIGHT); - } - } - } - } -} - -function printHelp() { - $help = <<