|
Rank: Newbie
Groups: Registered
Joined: 3/26/2015 Posts: 5
|
I have multiple asp:textboxes and a RichTextBox on my Page. I know that Rapidspell supports static mode to 3rd party textboxes , but I need to integrate As You Type for TextBoxes and Richtext box on my page.
Appreciate any help on this.
Thanks.
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
This works for me, the plain textbox goes in to AYT mode and the CKEditor is static 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" type="text/javascript"></script> <script src="/Scripts/RapidSpell-AYT.js" type="text/javascript"></script> <script src="/Scripts/RapidSpell-DIALOG.js" type="text/javascript"></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') } }
var oo = onload; window.onload = function () { CKEDITOR.replace('editor1'); oo(); }; </script> </head> <body> <form> <textarea id="e1" name="editor1"><p>Initial value.</p></textarea>
<textarea id="e2">heelllo</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>
If it doesn't work for you let me know, it may be script version... Jim -your feedback is helpful to other users, thank you!
|
|
Rank: Newbie
Groups: Registered
Joined: 3/26/2015 Posts: 5
|
Thanks Jim. Will try the same and let u know.
|
|
Rank: Newbie
Groups: Registered
Joined: 3/26/2015 Posts: 5
|
Hi Jim,
I am using the Telerik radEditor on my page. Will the above snippet for CKeditor will work for my scenario. I am using RapidSpell Web ASP.NET v4.4.0
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
Yes, the same idea applies - it should work the same. -your feedback is helpful to other users, thank you!
|
|
Rank: Newbie
Groups: Registered
Joined: 3/26/2015 Posts: 5
|
Thanks Jim. Your solution worked for me.
|
|