* <pre>
* 'basic' - (boolean) Load "basic" editor (a small javascript stub that
* will download the full code on demand)?
- * 'config' - (string) The javascript config hash used to indiciate the
+ * 'config' - (array) The javascript config hash used to indiciate the
* config for this editor instance.
* 'id' - (string) The ID of the text area to turn into an editor. If
* empty, won't automatically load the editor.
* instead be stored for access via getJS().
* </pre>
*/
- public function __construct($params = array())
+ public function __construct(array $params = array())
{
+ $params = array_merge(array(
+ 'config' => array()
+ ), $params);
+
parent::__construct($params);
if (!$this->supportedByBrowser()) {
: 'ckeditor_basic.js';
$ck_path = $GLOBALS['registry']->get('webroot', 'horde') . '/services/editor/ckeditor/';
- if (empty($params['config'])) {
- $params['config'] = '{}';
- }
+ /* Globally disable spell check as you type. */
+ $params['config']['scayt_autoStartup'] = false;
+
+ $params['config'] = Horde_Serialize::serialize($params['config'], Horde_Serialize::JSON);
if (empty($params['no_notify'])) {
Horde::addScriptFile($ck_path . $ck_file, null, array('external' => true));
<api>beta</api>
</stability>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL</license>
- <notes>* Removed dependency on Horde_Core.
- * Removed Xinha driver.
+ <notes>* Removed Xinha driver.
* Added CKEditor driver.
* Initial Horde 4 package.
</notes>
<channel>pear.horde.org</channel>
</package>
<package>
+ <name>Core</name>
+ <channel>pear.horde.org</channel>
+ </package>
+ <package>
<name>Exception</name>
<channel>pear.horde.org</channel>
</package>