version 1.87, 2004/08/17 19:02:57
|
version 1.88, 2004/08/29 07:03:53
|
Line 926 sub htmlareaaddbuttons {
|
Line 926 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']); |