[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.6-94-g90fa1f4
Kevin Falcone
falcone at bestpractical.com
Fri Nov 20 13:39:58 EST 2009
The branch, 3.8-trunk has been updated
via 90fa1f465e557daea803d2a3f69d401fe9b2cf0f (commit)
from 68425c35ff842f8ef0d31d5db8480f42012747c8 (commit)
Summary of changes:
share/html/Elements/HeaderJavascript | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 90fa1f465e557daea803d2a3f69d401fe9b2cf0f
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Fri Nov 20 13:36:58 2009 -0500
Skip the richtext editor for android and iphone devices
Although they're webkit > 422 (which is what FCKeditor checks for)
the browser won't pop up the keyboard or react to input events,
rendering the rich text editor useless for these mobile devices.
Resolves 14070
diff --git a/share/html/Elements/HeaderJavascript b/share/html/Elements/HeaderJavascript
index be12d48..6ee88a1 100644
--- a/share/html/Elements/HeaderJavascript
+++ b/share/html/Elements/HeaderJavascript
@@ -69,7 +69,10 @@ $onload => undef
% if ( RT->Config->Get('MessageBoxRichText', $session{'CurrentUser'})) {
function ReplaceAllTextareas() {
- if (!FCKeditor_IsCompatibleBrowser())
+ var sAgent = navigator.userAgent.toLowerCase();
+ if (!FCKeditor_IsCompatibleBrowser() ||
+ sAgent.indexOf('iphone') != -1 ||
+ sAgent.indexOf('android') != -1 )
return false;
// replace all content and signature message boxes
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list