Welcome Guest Search | Active Topics | Sign In | Register

SpellCheckerDialog AddCustomButton ('add to dictionary') is disabled Options
TMcCabe
Posted: Monday, August 22, 2016 3:14:51 PM
Rank: Member
Groups: Member

Joined: 12/9/2010
Posts: 28
I have a spell checker (version 11.0.66.2) that I have lightly customized by adding bootstrap classes to controls. My 'AddCustomButton' ('add to dictionary') is disabled upon rendering. This is occurring running from localhost and as deployed. This has worked in the past.

All other controls within the dialog are active and working as expected. These have also been customized by adding bootstrap classes.

Source:
Code: HTML/ASPX
<asp:Button ID="AddCustomButton" runat="server" CssClass="btn btn-default" Text="Add to Dictionary"  />


As rendered
Code: HTML/ASPX
<input name="ctl00$MainContent$SpellCheckerDialog1$ctl00$AddCustomButton" tabindex="0" disabled="" class="btn btn-default" id="ctl00_MainContent_SpellCheckerDialog1_ctl00_AddCustomButton" onclick='javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$MainContent$SpellCheckerDialog1$ctl00$AddCustomButton", "", true, "", "", false, false))' type="submit" value="Add to Dictionary">



Code: XML
<appSettings>
    <!--Essential Objects spell checker dictionary library location-->
    <add key="eo_DictLocation" value="~/interfaces/assets/dictionary/"/>
...
</appSettings>


My Dictionary directory contains /en_US/
en_US.aff
en_US.dic
README_en.US.txt
user_words.txt {has content from previous additions}


What might be causing this? I've not seen anything in the CHM suggesting that the 'Add to Dictionary' capability could be disabled.
eo_support
Posted: Thursday, August 25, 2016 10:32:27 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi,

Please check if you have handled the SpellChecker's CustomWord event. The "Add to Dictionary" button won't be enabled unless you handle this event.

Thanks!
TMcCabe
Posted: Friday, August 26, 2016 9:09:06 AM
Rank: Member
Groups: Member

Joined: 12/9/2010
Posts: 28
That did the trick. Thank you.
eo_support
Posted: Friday, August 26, 2016 9:27:03 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Great. Glad to hear that it works for you. Please feel free to let us know if there is anything else.

Thanks!


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.