version 1.87, 2004/08/17 19:02:57
|
version 1.89, 2004/09/10 17:58:01
|
Line 117 sub store_recent {
|
Line 117 sub store_recent {
|
time.'&'.&Apache::lonnet::escape($value) }); |
time.'&'.&Apache::lonnet::escape($value) }); |
} |
} |
|
|
|
sub remove_recent { |
|
my ($area,$names)=@_; |
|
my $file=&recent_filename($area); |
|
return &Apache::lonnet::del($file,$names); |
|
} |
|
|
sub select_recent { |
sub select_recent { |
my ($area,$fieldname,$event)=@_; |
my ($area,$fieldname,$event)=@_; |
my %recent=&Apache::lonnet::dump(&recent_filename($area)); |
my %recent=&Apache::lonnet::dump(&recent_filename($area)); |
Line 926 sub htmlareaaddbuttons {
|
Line 932 sub htmlareaaddbuttons {
|
config.registerButton('ed_math','LaTeX Inline', |
config.registerButton('ed_math','LaTeX Inline', |
'/htmlarea/images/ed_math.gif',false, |
'/htmlarea/images/ed_math.gif',false, |
function(editor,id) { |
function(editor,id) { |
editor.surroundHTML('<m>\$','\$</m>'); |
editor.surroundHTML(' <m>\$','\$</m> '); |
} |
} |
); |
); |
config.registerButton('ed_math_eqn','LaTeX Equation', |
config.registerButton('ed_math_eqn','LaTeX Equation', |
'/htmlarea/images/ed_math_eqn.gif',false, |
'/htmlarea/images/ed_math_eqn.gif',false, |
function(editor,id) { |
function(editor,id) { |
editor.surroundHTML( |
editor.surroundHTML( |
'<center><m>\\\\[','\\\\]</m></center>'); |
' \\n<center><m>\\\\[','\\\\]</m></center>\\n '); |
} |
} |
); |
); |
config.toolbar.push(['ed_math','ed_math_eqn']); |
config.toolbar.push(['ed_math','ed_math_eqn']); |