I would like to add Sharepoint spell checker Javascript in Content Editor webpart in SP2013.
But my requirement is to use this in a CEW on a anchor tag. I tired the below code but its not working. What is the correct way of doing it?
<script type="text/javascript" language="javascript" src="/_layouts/1033/form.js"></script><script type="text/javascript" language="javascript" src="/_layouts/1033/core.js"></script><script type="text/javascript" language="javascript" src="/_layouts/1033/bform.js"></script><script type="text/javascript" language="javascript" src="/_layouts/1033/SpellCheckEntirePage.js"></script><script language="”javascript”" type="”text/javascript”">
function doSpellCheck() {
SpellCheckEntirePage('/_vti_bin/SpellCheck.asmx', '/_layouts/SpellChecker.aspx');
}</script>
<a href="#" onclick="doSpellCheck(); return false;">Test</a>