From: Michael M Slusarz Date: Mon, 19 Jan 2009 07:05:38 +0000 (-0700) Subject: Use Horde_Editor from horde-git X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f0de2a9cf3f7078cc05466923c0bb98d3a53f37c;p=horde.git Use Horde_Editor from horde-git --- diff --git a/framework/Form/lib/Horde/Form/VarRenderer/Xhtml.php b/framework/Form/lib/Horde/Form/VarRenderer/Xhtml.php index b5ba30678..312a2178a 100644 --- a/framework/Form/lib/Horde/Form/VarRenderer/Xhtml.php +++ b/framework/Form/lib/Horde/Form/VarRenderer/Xhtml.php @@ -299,7 +299,7 @@ if (tmp) { htmlspecialchars($var->getValue($vars))); if ($var->type->hasHelper('rte') && $browser->hasFeature('rte')) { - $editor = Horde_Editor::factory('xinha', array('id' => $var->getVarName())); + $editor = Horde_Editor::factory('Xinha', array('id' => $var->getVarName())); } if ($var->type->hasHelper() && $browser->hasFeature('javascript')) { diff --git a/imp/lib/UI/Compose.php b/imp/lib/UI/Compose.php index ebf42ef7e..cbf5562a4 100644 --- a/imp/lib/UI/Compose.php +++ b/imp/lib/UI/Compose.php @@ -190,7 +190,7 @@ class IMP_UI_Compose */ function initRTE($mode = 'imp') { - $editor = &Horde_Editor::singleton('fckeditor', array('id' => 'message', 'no_notify' => true)); + $editor = &Horde_Editor::singleton('Fckeditor', array('id' => 'message', 'no_notify' => true)); $fck_buttons = $GLOBALS['prefs']->getValue('fckeditor_buttons'); if (!empty($fck_buttons)) { diff --git a/imp/stationery.php b/imp/stationery.php index 58694ac25..06516fbc9 100644 --- a/imp/stationery.php +++ b/imp/stationery.php @@ -91,7 +91,7 @@ if ($updated) { } if ($stationery['t'] == 'html') { - $editor = &Horde_Editor::singleton('fckeditor', array('id' => 'content')); + $editor = &Horde_Editor::singleton('Fckeditor', array('id' => 'content')); } /* Show the header. */ diff --git a/news/add.php b/news/add.php index 73919ee46..bc1539f11 100644 --- a/news/add.php +++ b/news/add.php @@ -110,6 +110,7 @@ foreach ($conf['attributes']['languages'] as $key) { $form->addVariable($flag . _("Tags"), "tags_$key", 'text', false, false, _("Enter one or more keywords that describe your news. Separate them by spaces.")); } $form->addVariable($flag . _("Content"), "content_$key", 'longtext', ($key == $default_lang) ? true : false , false, false, array(20, 120)); + // TODO: tinymce is no longer available Horde_Editor::singleton('tinymce', array('id' => "content_$key", 'config' => array('mode'=> 'exact',