--- loncom/interface/lonhtmlcommon.pm 2004/08/17 19:02:57 1.87 +++ loncom/interface/lonhtmlcommon.pm 2004/08/29 07:03:53 1.88 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.87 2004/08/17 19:02:57 albertel Exp $ +# $Id: lonhtmlcommon.pm,v 1.88 2004/08/29 07:03:53 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -926,14 +926,14 @@ sub htmlareaaddbuttons { config.registerButton('ed_math','LaTeX Inline', '/htmlarea/images/ed_math.gif',false, function(editor,id) { - editor.surroundHTML('\$','\$'); + editor.surroundHTML(' \$','\$ '); } ); config.registerButton('ed_math_eqn','LaTeX Equation', '/htmlarea/images/ed_math_eqn.gif',false, function(editor,id) { editor.surroundHTML( - '
\\\\[','\\\\]
'); + ' \\n
\\\\[','\\\\]
\\n '); } ); config.toolbar.push(['ed_math','ed_math_eqn']);