doc fixes; no need to load prototype.js here
authorMichael M Slusarz <slusarz@curecanti.org>
Sat, 24 Oct 2009 12:47:43 +0000 (06:47 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Sun, 25 Oct 2009 02:35:20 +0000 (20:35 -0600)
framework/Editor/lib/Horde/Editor/Fckeditor.php
framework/Editor/lib/Horde/Editor/Xinha.php

index b8238b2..93e1df8 100644 (file)
@@ -1,6 +1,6 @@
 <?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/)
@@ -21,8 +21,8 @@ class Horde_Editor_Fckeditor extends Horde_Editor
      * @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())
index d9fc13e..3ae8c56 100644 (file)
@@ -1,6 +1,6 @@
 <?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/
@@ -16,7 +16,7 @@
  * @author  Michael Slusarz <slusarz@horde.org>
  * @package Horde_Editor
  */
-class Horde_Editor_xinha extends Horde_Editor
+class Horde_Editor_Xinha extends Horde_Editor
 {
     /**
      * Constructor.
@@ -31,7 +31,7 @@ class Horde_Editor_xinha extends Horde_Editor
      * '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
@@ -138,10 +138,6 @@ class Horde_Editor_xinha extends Horde_Editor
         $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>';