Sure, here's a complete HTML page that shows it working - note that you might want to update your scripts/css to the latest release (it was made today)
http://keyoti.com/downlo...Web-NET-4-3-2-Setup.msi
Code:
<!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>
<title></title>
<script src="/ckeditor_files/ckeditor.js"></script>
<script src="/Keyoti_RapidSpell_Web_Common/RapidSpell-AYT.js"></script>
<script src="/Keyoti_RapidSpell_Web_Common/RapidSpell-DIALOG.js"></script>
<script type="text/javascript">
rapidSpell.ayt_staticMode = true;
rapidSpell.ayt_aytEnabled = false;
function spell(id, mode) {
rapidSpell.setParameterValue('default', 'IgnoreXML', true);
var ifr = document.getElementsByClassName('cke_wysiwyg_frame cke_reset')[0];
ifr.setAttribute('id', id+'_ifr');
ifr.id = id+'_ifr';
if (mode == 'inline')
rapidSpell.ayt_spellCheck(id + '_ifr')
else {
rapidSpell.dialog_spellCheck(true, id + '_ifr')
}
}
window.onload = function () {
CKEDITOR.replace('editor1');
};
</script>
</head>
<body>
<form>
<textarea name="editor1"><p>Initial value.</p></textarea>
<input type="button" onclick="spell('editor1', 'inline')" value = 'Inline spell check' />
<input type=button onclick="spell('editor1', 'dialog')" value='Dialog spell check' />
</form>
</body>
</html>
There is an important part to it
Code:
var ifr = document.getElementsByClassName('cke_wysiwyg_frame cke_reset')[0];
ifr.setAttribute('id', id+'_ifr');
ifr.id = id+'_ifr';
this sets the ID of the CKEditor iframe, because otherwise there's no easy way to access it.
-Harry
-Harry