1

The SharePoint 2010 Ribbon has a Spelling button that spell checks the page. We are using CSS to hide the ribbon for certain lists that have custom Edit and Display forms. Is there a JavaScript function for this spell check feature I can just call from a link, so I don't have to display the ribbon?

1
  • I believe it all originates from sp.ui.spellcheck.js Sep 6, 2016 at 13:19

1 Answer 1

1

I once achieved it this way:

<script language="javascript" type="text/javascript">
     function doSpellCheck() {
          SpellCheckEntirePage(‘/_vti_bin/SpellCheck.asmx’,‘/_layouts/SpellChecker.aspx’);
     }
</script>

And

<a class="ms-toolbar" href="javascript:doSpellCheck()">Spelling…</a>

Following this article

Hope that helps!

3
  • Thanks, I found a similar answer on this blog, but I think the answer you found is cleaner. bigscholar.com/2013/01/03/…
    – CigarDoug
    Sep 6, 2016 at 14:21
  • That's basically the same thing :)
    – Gintas K
    Sep 6, 2016 at 14:27
  • Oh, I see, you wrapped SpellCheckEntirePage() in doSpellCheck().
    – CigarDoug
    Sep 6, 2016 at 15:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.