--- loncom/interface/lonhtmlcommon.pm 2012/09/24 10:47:26 1.324 +++ loncom/interface/lonhtmlcommon.pm 2012/09/24 11:04:20 1.325 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.324 2012/09/24 10:47:26 foxr Exp $ +# $Id: lonhtmlcommon.pm,v 1.325 2012/09/24 11:04:20 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1425,9 +1425,14 @@ sub htmlareaselectactive { }); + /* the muli colored editor can generate spellcheck with language 'none' + to disable spellcheck as well + */ function doSpellcheck(element, lang) { - \$(element).spellchecker('option', {lang: lang}); - \$(element).spellchecker('check'); + if (lang != 'none') { + \$(element).spellchecker('option', {lang: lang}); + \$(element).spellchecker('check'); + } }