I am not able to check the spelling in the rich text editor. Any help is much appreciated. Thanks.
Here is the code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link href="FCKeditor/sample.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="spellchecker/spell.js"></script> // Third party software provides the spelling checker program
<script type="text/javascript" src="FCKeditor/fckeditor.js"></script>
<script type="text/javascript">
function spellchecker() {
// Get the text from the FCKEditor
document.compose.oFCKeditor.value = FCKeditorAPI.GetInstance('MyFCKeditor').GetXHTML() ;
// Run the spell-checker on the text
spell('document.compose.oFCKeditor.value');
}
</script>
<title>Spell Checker Test Page</title>
</head>
<body>
<form name="myForm">
<p>FCKeditor with Basic toolbar:
<script type="text/javascript">
<!--
var sBasePath = '/FCKeditor/';
var oFCKeditor = new FCKeditor( 'MyFCKeditor' ) ;
oFCKeditor.Config['ToolbarStartExpanded'] = true ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.ToolbarSet = 'Basic' ;
oFCKeditor.Value = 'Greetings! Ho may I help u.' ;
oFCKeditor.Create() ;
//-->
</script>
<input type="button" value="Check Spelling from the rich textarea" onClick="spellchecker(); return false;">
</form>
</body>
</html>
Here is the code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link href="FCKeditor/sample.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="spellchecker/spell.js"></script> // Third party software provides the spelling checker program
<script type="text/javascript" src="FCKeditor/fckeditor.js"></script>
<script type="text/javascript">
function spellchecker() {
// Get the text from the FCKEditor
document.compose.oFCKeditor.value = FCKeditorAPI.GetInstance('MyFCKeditor').GetXHTML() ;
// Run the spell-checker on the text
spell('document.compose.oFCKeditor.value');
}
</script>
<title>Spell Checker Test Page</title>
</head>
<body>
<form name="myForm">
<p>FCKeditor with Basic toolbar:
<script type="text/javascript">
<!--
var sBasePath = '/FCKeditor/';
var oFCKeditor = new FCKeditor( 'MyFCKeditor' ) ;
oFCKeditor.Config['ToolbarStartExpanded'] = true ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.ToolbarSet = 'Basic' ;
oFCKeditor.Value = 'Greetings! Ho may I help u.' ;
oFCKeditor.Create() ;
//-->
</script>
<input type="button" value="Check Spelling from the rich textarea" onClick="spellchecker(); return false;">
</form>
</body>
</html>