version 1.84.2.1, 2004/08/17 19:09:33
|
version 1.84.2.2, 2004/08/29 07:53:00
|
Line 897 sub htmlareaaddbuttons {
|
Line 897 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']); |