--- loncom/interface/lonpreferences.pm 2008/05/27 20:44:55 1.121 +++ loncom/interface/lonpreferences.pm 2008/07/18 12:36:11 1.125 @@ -1,7 +1,7 @@ # The LearningOnline Network # Preferences # -# $Id: lonpreferences.pm,v 1.121 2008/05/27 20:44:55 www Exp $ +# $Id: lonpreferences.pm,v 1.125 2008/07/18 12:36:11 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -108,9 +108,14 @@ sub wysiwygchanger { } my $switchoff=&mt('Disable WYSIWYG editor'); my $switchon=&mt('Enable WYSIWYG editor'); + my $warning=''; + if ($env{'user.adv'}) { + $warning.="
".&mt("The WYSIWYG editor only supports simple HTML and is in many cases unsuited for advanced authoring. In a number of cases, it may destroy advanced authoring involving LaTeX and script function calls.")."
"; + } $r->print(< TeX to HTML
-
+
+$lt{'preftxt'}:
+$selectionbox
jsMath
+
+
+
$jsMath_start - + +
++
- Convert to Images
-
-
+
+
+
ENDLSCREEN if ($env{'environment.texengine'} ne 'jsMath') { @@ -1909,7 +1929,8 @@ sub handler { text => 'Register Clicker'}, printmenu => 'yes', })); - if ($env{'user.adv'}) { + my %author_roles = &Apache::lonnet::get_my_roles($user,$domain,'userroles','',['au']); + if (keys(%author_roles) > 0) { push (@Options,({ action => 'changedomcoord', linktext => 'Restrict Domain Coordinator Access', href => '/adm/preferences',