--- loncom/interface/lonhtmlcommon.pm 2012/09/10 09:51:06 1.322
+++ 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.322 2012/09/10 09:51:06 foxr Exp $
+# $Id: lonhtmlcommon.pm,v 1.325 2012/09/24 11:04:20 foxr Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1212,7 +1212,7 @@ ENDEDITOR
-
+
ENDJQUERY
@@ -1425,6 +1425,16 @@ sub htmlareaselectactive {
});
+ /* the muli colored editor can generate spellcheck with language 'none'
+ to disable spellcheck as well
+ */
+ function doSpellcheck(element, lang) {
+ if (lang != 'none') {
+ \$(element).spellchecker('option', {lang: lang});
+ \$(element).spellchecker('check');
+ }
+ }
+
JAVASCRIPT
if ($dragmath_prefix ne '') {