version 1.255, 2009/12/22 05:33:36
|
version 1.256, 2009/12/22 06:02:44
|
Line 1356 sub htmlareaselectactive {
|
Line 1356 sub htmlareaselectactive {
|
$(this).before("<div><a href=\"#\" id=\"LC_rt_"+id+"\" title=\"Enable rich text formatting (bold, italic, etc.)\" class=\"LC_enable_rt\"><b>Rich formatting »</b></a></div>"); |
$(this).before("<div><a href=\"#\" id=\"LC_rt_"+id+"\" title=\"Enable rich text formatting (bold, italic, etc.)\" class=\"LC_enable_rt\"><b>Rich formatting »</b></a></div>"); |
$("#LC_rt_"+id).click(editorHandler); |
$("#LC_rt_"+id).click(editorHandler); |
}); |
}); |
|
|
}); |
}); |
'; |
'; |
|
|
|
foreach my $field (@fields) { |
|
$output.=' |
|
|
|
{ |
|
$(document).ready(function() { |
|
if (!($("#'.$field.'").hasClass("LC_richAlwaysOn"))) { |
|
if (!($("#'.$field.'").hasClass("LC_richAlwaysOff"))) { |
|
if (!($("#'.$field.'").hasClass("LC_richDetectHtml"))) { |
|
if (!($("#'.$field.'").hasClass("LC_richDefaultOn"))) { |
|
if (!($("#'.$field.'").hasClass("LC_richDefaultOff"))) { |
|
var oFCKeditor = new FCKeditor("'.$field.'"); |
|
oFCKeditor.Config["CustomConfigurationsPath"] = |
|
"/fckeditor/loncapaconfig.js"; |
|
oFCKeditor.ReplaceTextarea(); |
|
oFCKeditor.Config["AutoDetectLanguage"] = false; |
|
oFCKeditor.Config["DefaultLanguage"] = "'.$lang.'"; |
|
} |
|
} |
|
} |
|
} |
|
} |
|
}); |
|
}'; |
|
} |
$output.="\nwindow.status='Activated Editfields';\n" |
$output.="\nwindow.status='Activated Editfields';\n" |
.'// ]]>'."\n" |
.'// ]]>'."\n" |
.'</script><br />'. |
.'</script><br />'. |