version 1.257, 2009/12/22 17:27:28
|
version 1.260, 2010/01/08 22:05:42
|
Line 1241 ENDLINK
|
Line 1241 ENDLINK
|
|
|
sub htmlareaheaders { |
sub htmlareaheaders { |
my $s=""; |
my $s=""; |
if (!&htmlareablocked() && &htmlareabrowser()) { |
if (&htmlareabrowser()) { |
$s.=(<<ENDEDITOR); |
$s.=(<<ENDEDITOR); |
<script type="text/javascript" src="/fckeditor/fckeditor.js"></script> |
<script type="text/javascript" src="/fckeditor/fckeditor.js"></script> |
<script type="text/javascript" src="/ckeditor/ckeditor.js"></script> |
<script type="text/javascript" src="/ckeditor/ckeditor.js"></script> |
Line 1250 ENDEDITOR
|
Line 1250 ENDEDITOR
|
$s.=(<<ENDJQUERY); |
$s.=(<<ENDJQUERY); |
<script type="text/javascript" src="/adm/jQuery/js/jquery-1.3.2.min.js"></script> |
<script type="text/javascript" src="/adm/jQuery/js/jquery-1.3.2.min.js"></script> |
<script type="text/javascript" src="/adm/jQuery/js/jquery-ui-1.7.2.custom.min.js"></script> |
<script type="text/javascript" src="/adm/jQuery/js/jquery-ui-1.7.2.custom.min.js"></script> |
|
<link rel="stylesheet" type="text/css" href="/adm/jQuery/css/smoothness/jquery-ui-1.7.2.custom.css" /> |
ENDJQUERY |
ENDJQUERY |
return $s; |
return $s; |
} |
} |
Line 1286 sub htmlarea_lang {
|
Line 1287 sub htmlarea_lang {
|
sub htmlareaselectactive { |
sub htmlareaselectactive { |
my @fields=@_; |
my @fields=@_; |
unless (&htmlareabrowser()) { return ''; } |
unless (&htmlareabrowser()) { return ''; } |
if (&htmlareablocked()) { return '<br />'.&enablelink(@fields); } |
#if (&htmlareablocked()) { return '<br />'.&enablelink(@fields); } |
my $output='<script type="text/javascript" defer="1">'."\n" |
my $output='<script type="text/javascript" defer="1">'."\n" |
.'// <![CDATA['."\n"; |
.'// <![CDATA['."\n"; |
my $lang = &htmlarea_lang(); |
my $lang = &htmlarea_lang(); |
Line 1300 sub htmlareaselectactive {
|
Line 1301 sub htmlareaselectactive {
|
function startRichEditor(id) { |
function startRichEditor(id) { |
CKEDITOR.replace(id, |
CKEDITOR.replace(id, |
{ |
{ |
customConfig: "/ckeditor/loncapaconfig.js", |
customConfig: "/ckeditor/loncapaconfig.js" |
} |
} |
); |
); |
} |
} |