<?php
/**
- * The Horde_Editor_fckeditor:: class provides an WYSIWYG editor for use
+ * The Horde_Editor_Fckeditor:: class provides a WYSIWYG editor for use
* in the Horde Framework.
*
* Copyright 2003-2009 The Horde Project (http://www.horde.org/)
* @param array $params The following configuration parameters:
* <pre>
* 'id' - The ID of the text area to turn into an editor.
- * 'no_notify' - Don't output JS code via notification library. Code will
- * be stored for access via getJS().
+ * 'no_notify' - Don't output JS code automatically. Code will be stored
+ * for access via getJS().
* </pre>
*/
public function __construct($params = array())
<?php
/**
- * The Horde_Editor_xinha:: class provides access to the Xinha editor for use
+ * The Horde_Editor_Xinha:: class provides access to the Xinha editor for use
* in the Horde Framework.
*
* Xinha website: http://xinha.python-hosting.com/
* @author Michael Slusarz <slusarz@horde.org>
* @package Horde_Editor
*/
-class Horde_Editor_xinha extends Horde_Editor
+class Horde_Editor_Xinha extends Horde_Editor
{
/**
* Constructor.
* 'lang' - The language to use. (Default: en)
* 'loadnotify' - Display notification graphic when loading (Default: no)
* 'no_autoload' - Don't load xinha by default on pageload.
- * 'no_notify' - Don't output JS code via notification library. Code will
+ * 'no_notify' - Don't output JS code automatically. Code will
* be stored for access via getJS().
* 'noplugins' - A list of plugins to specifically never load.
* 'plugins' - Any plugins to load in addition to the plugins_stored in
$js .= '_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);' .
'Xinha.startEditors(_editors); };';
- if (empty($params['no_autoload'])) {
- Horde::addScriptFile('prototype.js', 'horde');
- }
-
if (!empty($params['no_notify'])) {
$js .= 'Event.observe(window, \'load\', xinha_init);';
$this->_js = '<script type="text/javascript">' . $js . '</script><script type="text/javascript" src="' . $xinha_path . 'XinhaCore.js"></script>';