Light
3rd March 2008, 02:39 PM
I'm having a problem trying to get the spell check to attach to both a TinyMCE textarea and other input type=text fields on the web page. I keep getting a "Exception thrown and not caught" error.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script language="javascript" type="text/javascript" src="../tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="JavaScript" type="text/javascript" src="/jspellEvolution/jspellSettings.js" charset="ISO-8859-1"></script>
<script language="JavaScript" type="text/javascript" src="/jspellEvolution/jspellEvolution.js" charset="ISO-8859-1"></script>
<script language="javascript" type="text/javascript">
jspellServerPath="/jspellEvolution/jspell_proxy.asp"; // specifies the URL to the JSpell Evolution spell check server
function postTinyMCEInit() {
setTimeout(jspellInit,500);
}
tinyMCE.init({
mode : "textareas",
oninit : "postTinyMCEInit",
theme : "simple"
});
function getSpellCheckArray() {
var fieldsToCheck=new Array();
// Use DOM Element IDs to specify fields to spell check
fieldsToCheck[fieldsToCheck.length]=[document,"inputtext"];
fieldsToCheck[fieldsToCheck.length]=[document,"txtarea"];
return fieldsToCheck;
}
</script>
</head>
<body>
<form name="form1" method="post" action="">
Some input:
<input type="text" name="inputtext" />
<br />
Some textarea:<br />
<textarea name="txtarea" rows="10" cols="50"></textarea>
</form>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script language="javascript" type="text/javascript" src="../tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="JavaScript" type="text/javascript" src="/jspellEvolution/jspellSettings.js" charset="ISO-8859-1"></script>
<script language="JavaScript" type="text/javascript" src="/jspellEvolution/jspellEvolution.js" charset="ISO-8859-1"></script>
<script language="javascript" type="text/javascript">
jspellServerPath="/jspellEvolution/jspell_proxy.asp"; // specifies the URL to the JSpell Evolution spell check server
function postTinyMCEInit() {
setTimeout(jspellInit,500);
}
tinyMCE.init({
mode : "textareas",
oninit : "postTinyMCEInit",
theme : "simple"
});
function getSpellCheckArray() {
var fieldsToCheck=new Array();
// Use DOM Element IDs to specify fields to spell check
fieldsToCheck[fieldsToCheck.length]=[document,"inputtext"];
fieldsToCheck[fieldsToCheck.length]=[document,"txtarea"];
return fieldsToCheck;
}
</script>
</head>
<body>
<form name="form1" method="post" action="">
Some input:
<input type="text" name="inputtext" />
<br />
Some textarea:<br />
<textarea name="txtarea" rows="10" cols="50"></textarea>
</form>
</body>
</html>