![]() That file is relic from old Equation Editor plugin for HTMLArea v3.0Īnd Xinha plugin Equation has obviously used code from several prototypes of equation editor (modified by Raimund Meyer ?) I think operatation.html is not used at all. Is operation.html supposed to be visible somehow? Since I have never used Equation before I did not know if that was correct behavior. (3) I just noticed that the equation construction part of the editor (operation.html) is not displaying. In other words, the second time you try to edit the same document the editor converts the the backticked span into something with math title= followed by the MathML, and THAT should ONLY ever be called as a result running showMathML when the showmathml button is pressed, and then it should be displayed ONLY, not inserted into the text area. (2) It looks to me like node2string is being called when the Equation editor opens and is what is responsible for converting all the existing text expressions into MathML, which is behavior we do not want. Outnode.appendChild(document.createComment("`amath"+str+"endamath`")) So, the quick fix is I reversed the extra tokens like so: So, I changed the backticks to amath and endamath and voila, the text expression showed up, but was not parsed! Then I added the ticks back in so: outnode.appendChild(document.createComment("amath`"+str+"`endamath")) Īnd preview works just like its supposed to. The preview function of dragmath.html is supposed to add the backticks in for viewing, but they are not showing up. ![]() I first added the amath token a text expression I created in the lower left Equation box, and the preview immediately showed up on the right and the showmathml button worked, so my assumption was that the editor in parsing and reparsing was not placing tokens correctly for the 2.0.2 script. ![]() I am hoping we will also have a table for OpenOffice Math this summer for both asciimathml and dragmath (dragmath now does asciimathml) Id)) įYI, asciimathml.js parses and displays both asciimathml text expressions and LaTex text expressions, the former by using amath.endamath or `.` and the latter using the typical $.$ The Equation Editor should be able to do either, as you state, because everything is built into the script all you would have to do for insertion is have a button that selected what you were tokenizing with, as well as set up dialog.html to handle the tokens. Selection is made currently from user profile (user/editlib.php) dropdown box with options No editor - Htmlarea - TinyMCE - Xinha - FCKEditor and code is separated in two points: I have in fact two versions ready - the full htmlarea replacement (TinyMCE or Xinha so far) is for easy testing and the package version with option to select editor is done so that Xinha is in folder lib/editor/xinha, tinymce in folder lib/editor/tinymce, htmlarea in lib/editor/htmlarea and fckeditor inb lib/editor/fckeditor.
0 Comments
Leave a Reply. |