Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

As You Type for RichTextBox and asp: TextBox on the same page - RapidSpell Web ASP.NET - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
skdrapidspell
#1 Posted : Thursday, March 26, 2015 10:44:54 PM
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.
Jim
#2 Posted : Friday, March 27, 2015 3:56:56 AM
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">&lt;p&gt;Initial value.&lt;/p&gt;</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!


skdrapidspell
#3 Posted : Friday, March 27, 2015 7:50:18 PM
Rank: Newbie

Groups: Registered

Joined: 3/26/2015
Posts: 5
Thanks Jim. Will try the same and let u know.
skdrapidspell
#4 Posted : Friday, March 27, 2015 10:03:07 PM
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
Jim
#5 Posted : Friday, March 27, 2015 10:13:34 PM
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!


skdrapidspell
#6 Posted : Friday, March 27, 2015 11:33:45 PM
Rank: Newbie

Groups: Registered

Joined: 3/26/2015
Posts: 5
Thanks Jim. Your solution worked for me.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.




About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.