}
/**
+ * Does the current browser support the Horde_Editor driver.
+ *
+ * @return boolean True if the browser supports the editor.
+ */
+ public function supportedByBrowser()
+ {
+ return true;
+ }
+
+ /**
* List the available editors.
* Can be called statically: Horde_Editor::availableEditors();
*
}
}
+ /**
+ * Does the current browser support the Horde_Editor driver.
+ *
+ * @return boolean True if the browser supports the editor.
+ */
+ public function supportedByBrowser()
+ {
+ global $browser;
+
+ switch ($browser->getBrowser()) {
+ case 'konqueror':
+ case 'msie':
+ case 'mozilla':
+ case 'opera':
+ // MSIE: 5.5+
+ // Firefox: 1.5+
+ // Opera: 9.5+
+ // Safari: 3.0+
+ return $browser->hasFeature('rte');
+
+ default:
+ return false;
+ }
+ }
+
}
<min>1.5.0</min>
</pearinstaller>
<package>
+ <name>Browser</name>
+ <channel>pear.horde.org</channel>
+ </package>
+ <package>
<name>Util</name>
<channel>pear.horde.org</channel>
</package>
</dependencies>
<phprelease>
<filelist>
- <install name="lib/Horde/Browser/Fckeditor.php" as "Horde/Browser/Fckeditor.php" />
- <install name="lib/Horde/Browser/Xinha.php" as "Horde/Browser/Xinha.php" />
- <install name="lib/Horde/Browser.php" as "Horde/Browser.php" />
+ <install name="lib/Horde/Editor/Fckeditor.php" as="Horde/Editor/Fckeditor.php" />
+ <install name="lib/Horde/Editor/Xinha.php" as="Horde/Editor/Xinha.php" />
+ <install name="lib/Horde/Editor.php" as="Horde/Editor.php" />
</filelist>
</phprelease>
<changelog>