[rt-users] Spell Checker addon?

Joop van de Wege JoopvandeWege at mococo.nl
Tue May 24 02:28:39 EDT 2005


On Mon, 23 May 2005 05:59:23 -0400 (EDT)
rt-users-request at lists.bestpractical.com wrote:

> On Wed, Apr 06, 2005 at 07:07:51PM, Joop van de Wege wrote:
> > 
> > On Wed,  6 Apr 2005 11:47:05 -0400 (EDT)
> > rt-users-request at lists.bestpractical.com wrote:
> > 
> > > Greetings to all, 
> > > 
> > > Anyone know if there is a spell check addon for RT?
> > > Please let me know and Thanks!
> > > Tom
> > I use Wboss+aspell-0.6x which integrates rather smoothly and works well.
> 
> How did you integrate with RT? Would you be kind enough to post the
> steps in the wiki page?
Get the Wboss package and install it into your cgi-bin directory of your
RT webserver, I use Apache. Install Aspell 0.60-2 or higher (lower has
problems on Solaris) and a language. Point Wboss to the correct Aspell
locations and modify Update.html with the following:

<TABLE WIDTH=100% BGCOLOR="<%$color%>" CELLSPACING=0 BORDER=0 CELLPADDING=0 >
<TR>
<TD>
 
</TD>
<TD ALIGN=RIGHT VALIGN=CENTER><FONT COLOR=#ffd800>
<form name="spell">
<script>
  var win = null;
  function sendtext() {
  var semi = new RegExp("\;","g");
  document.send.checkme.value = (document.TicketUpdate.UpdateContent.value.replace(semi,"\;"));
  document.send.form.value = "TicketUpdate";
  document.send.field.value = "UpdateContent";
  document.domain="yourdomain.com";
  win=window.open('Speller','SpellChecker','width=580,height=460,top=50,left=150,scrollbars=1,location=true');
  document.send.submit();
  }
</script>
<input type="button" name="SpellCheck" value="SpellCheck" onclick="sendtext()"> 
</form>
</td>
<td>
<form name="send" action="http://my.rt.server/cgi-bin/spell.pl" method="post" target="SpellChecker"> <input
 type="hidden" name="checkme"> <input type="hidden" name="form"> <input
 type="hidden" name="field"> <input type="hidden" name="spell"
 value="check">
</font>
</form>
</TD>
</TR>
</TABLE> 
 
Insert this piece of text just after this:
<& /Elements/Header, Title => $title &>
<& /Ticket/Elements/Tabs, 
    Ticket => $TicketObj, 
    Title=> $title &> 

WATCH OUT:
I have entered document.domain="yourdomain.com" because of cross-site scripting protection.
Might not be needed. Check this.
Further adjust the action="http:....."
If you want more locations with a SpellCheck button then you must
adjust the following lines:
  document.send.form.value = "TicketUpdate";
  document.send.field.value = "UpdateContent";
with the correct form and field values, see also Wboss documentation.

Good luck,

Joop

-- 
Joop van de Wege <JoopvandeWege at mococo.nl>




More information about the rt-users mailing list