locked
How to exclude TaxonomyFieldControl from spell checker RRS feed

  • Question

  • I have a page layout with a couple of TaxonomyFieldControls on it. When I run the spell checker in the ribbon the taxonomy fields are getting flagged with spelling errors. I don't want the taxonomy fields to be included in the spell check.

    I solved this problem for the UserField control (People Picker) and the SPFieldTargetToControlcontrol (Audience Targeting) by using javascript to add the class "ms-spellcheck-false" and setting the attribute "excludeFromSpellCheck" to true for the html elements generated by those controls. However, the same fix does not work for the TaxonomyFieldControl.

    Has anybody run into this and found a solution?

    Thursday, June 25, 2015 8:02 PM

Answers

  • Hi,

    We can add a custom dictionary and include the terms that fail the check into it! To do so follow these steps:

    1. Create a document library in the root site of your site collection called 'Spelling'.

    2. Create a text document with the file name 'Custom Dictionary.txt', the contents of which should be your custom terms – one to each line. In my case here this was a single line with the term 'Pharma'.

    3. Upload 'Custom Dictionary.txt' to your 'Spelling' document library.

    More information is here:

    Spell checking of Managed Metadata (Taxonomy) Fields

    http://www.3guysonsharepoint.com/?p=852

    Best Regards,

    Dennis


    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    • Proposed as answer by Patrick_Liang Sunday, July 5, 2015 11:21 AM
    • Marked as answer by Patrick_Liang Monday, July 6, 2015 8:24 AM
    Monday, June 29, 2015 7:20 AM