Try our conversational search powered by Generative AI!

Allan Thraen
May 18, 2011
  5035
(2 votes)

NHunSpellchecker for EPiServer CMS - Now on NuGet

Back in August of 2010 Ruwen Jin did a pretty cool implementation of NHunSpellchecker for TinyMCE in EPiServer CMS. Because he needed some framework changes in the CMS to finish it, it never made it online. However with EPiServer CMS 6 R2 those changes are in place and I took the liberty of finishing his project and wrap it in a NuGet package for our EPiServer NuGet feed. If you are new to NuGet, you can learn more here.

You can install it directly from the EPiServer NuGet Feed or download the source here if you are interested. Note that NHunSpellChecker, HunSpellChecker and the individual language packs which this project is dependent on each come with their own  open source licenses.

After you install it from the EPiServer NuGet feed into your web project, you need to create a custom setting for the spell-checker to be enabled on your XHTML fields. You do this by:

  1. Go to Admin mode
  2. Select the “Page Type” tab
  3. Click on “Edit Custom Property Types”
  4. Select XHTML String (in the bottom)
  5. Add a new setting. Give the setting a name and move the Spellcheck button from the “Miscellaneous” area to the place in the toolbar where you want it. Save the setting.
  6. Set it as Default.

You should now be ready to go! If you click the spellcheck button on any of the text fields in the editor it will highlight spelling mistakes and you can then select them to list suggestions.

image

 

The spell checker uses open source dictionaries from Open Office. Find more here. To install them, make sure that the language is enabled in EPiServer CMS, copy the .aff and .dic files to a folder with the language ID under modules\NHunSpellChecker.

Enjoy!

May 18, 2011

Comments

May 19, 2011 09:44 AM

Loving this!!!

Jan 25, 2012 01:22 PM

Nice

However, I can't install it using NuGet.

PM> Install-Package NHunSpellSpellChecker
Successfully installed 'NHunSpellSpellChecker 0.0.9'.
Successfully uninstalled 'NHunSpellSpellChecker 0.0.9'.
Install failed. Rolling back...
Install-Package : Failed to add reference to 'Hunspellx64'.
At line:1 char:16
+ Install-Package <><><>< NHunSpellSpellChecker
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

Any ideas?

Regards
/Fredrik

Simon Jones Jones
Simon Jones Jones Mar 6, 2012 05:25 PM

I have the same problem Fredrik. Is there a fix?

Sep 6, 2012 11:00 AM

The package from EPiServer NuGet feed does not install.
I got it working by building my own NuGet from the source.

Here is what i did:

1. Download the source: http://world.episerver.com/PageFiles/104267/NHunspellCheckerEPiServerCMS6R2.zip

2. Move Hunspellx64.dll and Hunspellx86.dll to the lib folder.

3. Make the following changes to NHunspell.nuspec
- Remove the white-space from (NuGet does not allow white-space in id)
- Change the line
to

4. Clean and build the project

The new NuGet package should now be in the folder: /NuGet/

Hope it helps :-)



Steven Smith
Steven Smith Sep 11, 2012 03:35 PM

Hi
Nice article! However, when I come to "move the Spellcheck button from the “Miscellaneous” area", I can't see it. Do I have to add a custom button for this somehow?
Cheers

Steve

PS - I also got the issue trying to install the NuGet package, but this worked OK after I installed the package updates.

Please login to comment.
Latest blogs
Optimizely and the never-ending story of the missing globe!

I've worked with Optimizely CMS for 14 years, and there are two things I'm obsessed with: Link validation and the globe that keeps disappearing on...

Tomas Hensrud Gulla | Apr 18, 2024 | Syndicated blog

Visitor Groups Usage Report For Optimizely CMS 12

This add-on offers detailed information on how visitor groups are used and how effective they are within Optimizely CMS. Editors can monitor and...

Adnan Zameer | Apr 18, 2024 | Syndicated blog

Azure AI Language – Abstractive Summarisation in Optimizely CMS

In this article, I show how the abstraction summarisation feature provided by the Azure AI Language platform, can be used within Optimizely CMS to...

Anil Patel | Apr 18, 2024 | Syndicated blog

Fix your Search & Navigation (Find) indexing job, please

Once upon a time, a colleague asked me to look into a customer database with weird spikes in database log usage. (You might start to wonder why I a...

Quan Mai | Apr 17, 2024 | Syndicated blog

The A/A Test: What You Need to Know

Sure, we all know what an A/B test can do. But what is an A/A test? How is it different? With an A/B test, we know that we can take a webpage (our...

Lindsey Rogers | Apr 15, 2024

.Net Core Timezone ID's Windows vs Linux

Hey all, First post here and I would like to talk about Timezone ID's and How Windows and Linux systems use different IDs. We currently run a .NET...

sheider | Apr 15, 2024