--- loncom/interface/lonhtmlcommon.pm 2012/09/10 10:49:27 1.323 +++ loncom/interface/lonhtmlcommon.pm 2012/09/24 10:47:26 1.324 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.323 2012/09/10 10:49:27 foxr Exp $ +# $Id: lonhtmlcommon.pm,v 1.324 2012/09/24 10:47:26 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1425,6 +1425,11 @@ sub htmlareaselectactive { }); + function doSpellcheck(element, lang) { + \$(element).spellchecker('option', {lang: lang}); + \$(element).spellchecker('check'); + } + JAVASCRIPT if ($dragmath_prefix ne '') {