Ignore:
Timestamp:
12/30/06 17:18:02 (12 years ago)
Author:
ray
Message:

Plugin Equation (aka ASCIIMath): some updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/Equation/popups/dialog.html

    r613 r627  
    7676         
    7777        var inputField = document.getElementById("inputText");  
    78         if (param["editedNode"] && param["editedNode"].tagName.toLowerCase() == 'math') 
     78         
     79        if (param["editedNode"] && param["editedNode"].tagName.toLowerCase() == 'span') 
    7980        { 
    80                 var formula = param["editedNode"].getAttribute("title"); 
    81                 inputField.value = formula;  
     81                var formula = param["editedNode"].getAttribute("title").replace(/^`*(.*?)`*$/m,"$1");; 
     82                inputField.value = formula; 
    8283                preview(); 
    83         } 
    84         else if (param["editedNode"] && param["editedNode"].tagName.toLowerCase() == 'span') 
    85         { 
    86                 var formula = param["editedNode"].innerHTML.replace(/^`?(.*?)`?$/m,"$1");; 
    87                 inputField.value = formula; 
    8884        } 
    8985        else inputField.value = ''; 
     
    292288  </tr> 
    293289  <tr><td colspan="2"> 
    294   Based on ASCIIMathML by <a href="http://www.chapman.edu/~jipsen" target="new">Peter Jipsen</a>,  
     290  <span>Based on ASCIIMathML by </span><a href="http://www.chapman.edu/~jipsen" target="new">Peter Jipsen</a>,  
    295291<a href="http://www.chapman.edu" target="new">Chapman University</a><br /> 
    296   For more information on AsciiMathML visit this page: <a href="http://www1.chapman.edu/~jipsen/mathml/asciimath.html" onclick="window.open(this.href,'_blank','');return false;">http://www1.chapman.edu/~jipsen/mathml/asciimath.html</a></td></tr> 
     292  <span>For more information on AsciiMathML visit this page: </span><a href="http://www1.chapman.edu/~jipsen/mathml/asciimath.html" onclick="window.open(this.href,'_blank','');return false;">http://www1.chapman.edu/~jipsen/mathml/asciimath.html</a></td></tr> 
    297293</table> 
    298294 
    299295<div id="buttons"> 
     296<span style="color:red">Attention: Editing the formula in the editor is not possible, please use this dialog!</span> 
    300297  <button type="submit" name="ok" onclick="return onOK();">OK</button> 
    301298  <button type="button" name="cancel" onclick="return onCancel();">Cancel</button> 
Note: See TracChangeset for help on using the changeset viewer.