ManniAT
  •  ManniAT
  • 59% (Neutral)
  • YAF Camper Topic Starter
2009-06-15T03:52:53Z
Hi,

since yaf has excellent support for the telerik rad editor  ít may be interesting to integrate spell checking.

Here are the steps to implement this to yaf (using rad editor).
I assume that rad editor is already running (telerik.web.ui.dll is in place)

1.) Modify web.config
--in the section <httpHandlers> add the following line
<add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
--for IIS 7 add the following line in the section <handlers>
<add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>

2.) Provide the folder for the dictionaries
--a.) create a directory under the forums root called App_Data
--b.) in App_Data create a directory RadSpell

3.) Copy the dictionaries to the new folder App_Data/RadSpell
--these are the TDF-files shipped with the rad controls
---de-DE.tdf, en-EN.tdf, fr-FR.tdf

4.) change the toolsFile.xml in forums_root/editors/radEditor
--the last lines look like this:
...
<tool name="InsertTable" />
</tools>
</root>
--change it to
...
<tool name="InsertTable" />
<tool name="AjaxSpellCheck" />
</tools>
<languages>
<language code="de-DE" title="Deutsch" />
<language code="en-US" title="Englisch" />
<language code="fr-FR" title="France" />
</languages>
</root>

5.) OPTIONAL if you want to enable "custom dictionaries" (add to dictionary menu item at spell check) do the following
--grant the web application full access to App_Data/RadSpell (the same you did for the upload directory)
--think a lot about this (especially at public forums) since this means that everyone can set misspelled words to "correct words" (no longer found with spellcheck)

Manfred
Sponsor

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved