I am using the showthread_quickedit template
So it looks like
<input name="r2" type="button" checked value=" Close Box " onClick="toggleT('e$post[postid]','h')" style="font-face:verdana;font-size:13px">
<form name="spell">
<script>
function sendtext() {
var semi = new RegExp("\;","g");
document.send.checkme.value = (document.vbulletin.message.value.replace(semi,"\; "));
document.send.form.value = "vbulletin;
document.send.field.value = "message";
window.open('','SpellChecker','width=640,height=48 0,scrollbars=1,location=true') ;
document.send.submit();
}
</script>
<input type="button" name="SpellCheck" value="Spell Check" onclick="sendtext()" class="bginput" tabindex="5" accesskey="c">
</form>
<form name="send" action="/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">
</form>
</td>
That is the way that I have it incorporated in my newthread, newreply templates and it works great.
Thanks
|