[Tickets #692] HTMLArea cannot find the correct TEXTAREA
bugs at bugs.horde.org
bugs at bugs.horde.org
Thu Oct 14 04:08:31 PDT 2004
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=692
-----------------------------------------------------------------------
Ticket | 692
Updated By | ctnpublic-horde at yahoo.com
Summary | HTMLArea cannot find the correct TEXTAREA
Queue | Horde Framework
State | Feedback
Priority | 2. Medium
Type | Bug
Owners | Jan Schneider
-----------------------------------------------------------------------
ctnpublic-horde at yahoo.com (2004-10-14 04:08) wrote:
Quite right, how careless of me (plugins).
imp/templates/compose/compose.inc has the <input name="message"> when
spelling is turned on. This breaks HTML compose in IE.
Here's another workaround suggestion: find the exact TEXTAREA with the ID we
want.
cvs diff -u -r HEAD framework/Editor/Editor/htmlarea.php
Index: framework/Editor/Editor/htmlarea.php
===================================================================
RCS file: /repository/framework/Editor/Editor/htmlarea.php,v
retrieving revision 1.21
diff -u -r1.21 htmlarea.php
--- framework/Editor/Editor/htmlarea.php 6 Sep 2004 15:01:28 -0000
1.21
+++ framework/Editor/Editor/htmlarea.php 14 Oct 2004 11:03:51 -0000
@@ -55,7 +55,13 @@
'config.hideSomeButtons(" showhelp "); ';
if (isset($params['id'])) {
- $js .= 'var textareas = [document.getElementById("' .
$params['id'] . '")]; ';
+ $js .= 'var alltextareas =
document.getElementsByTagName("textarea"); ' .
+ 'var textarea = null; ' .
+ 'for (tai = 0; tai < alltextareas.length; tai++) { ' .
+ ' textarea = alltextareas[tai]; ' .
+ ' if (textarea.id == "' . $params['id'] . '") break;
' .
+ '} ' .
+ 'var textareas = [textarea]; ';
} else {
$js .= 'var textareas =
document.getElementsByTagName("textarea"); ';
}
More information about the bugs
mailing list