By jonathan-t on
Hi all,
I'm creating a dual language site (English/Urdu) and need a good way for users to enter Urdu text into to the faq_ask input form. There's Urdu Editor (http://www.urduweb.org/blog/2005/03/23/) which is written in JavaScript and should work well for this purpose. I know it works because I can get the Urdu keyboard to display in a block, and can define a text area which accepts the Urdu input. But, what I haven't been able to figure out is how to get Urdu Editor to take control of the faq_ask form. The Urdu text simply won't display in it. Here's a snippet of the code:
<script language="JavaScript" type="text/javascript" src="/mypath/UrduEditor.js">
</script>
<script language="JavaScript" type=text/javascript>
initUrduEditor(/mypath/UrduEditor.css);
</script>
<!-- These next lines are supposed to tie the editor to the faq_ask input form -->
<script language="JavaScript" type=text/javascript>
makeUrduEditor("edit-title", 18);
</script>
<script language="JavaScript" type=text/javascript>
onfocus="setEditor(this)"
</script>
<!-- This code displays the Urdu keyboard -->
<div align=center>
<table border="1" width="50%">
<tr>
<td width="100%" align="right" >
<script language="JavaScript" type=text/javascript>
writeKeyboard();
</script>
</td>
</tr>
</table>
</div>
Any help in figuring this out will be greatly appreciated!
If it makes any difference, I'm using the Garland theme.