Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Less-Than-Sign from Drag and Drop area? #2

Open
raybaranoski opened this issue Dec 14, 2015 · 5 comments
Open

Using Less-Than-Sign from Drag and Drop area? #2

raybaranoski opened this issue Dec 14, 2015 · 5 comments
Labels

Comments

@raybaranoski
Copy link

Hi, Daniel... I looked as best I could for a solution to this in either a config or a settings file, but couldn't, so I figured I would ask here. I apologize if this is not the correct place to post this.

This error appears in yellow and red when dragging a less-than-sign into the window.

"Error parsing MathML: error on line 1 at column 96: StartTag: invalid element name"

The symbol is accepted and it appears to work, but is there a way to suppress this or escape the < symbol? or html entity?

Any help would be appreciated. Thank you for the work done on this project.

@dthies dthies added the bug label Dec 19, 2015
@dthies
Copy link
Owner

dthies commented Dec 19, 2015

Hi Ray,

Thanks for reporting this this is the right place or on on of the other integrations. I have not noticed this before, but was able to reproduce it. It is a bug in the configuration file. I just tried the configuration editor at http://dthies.github.io/moodle-editor_tinymce-mathslate/configuration.html and it came up with an improvement. In config.js replace ["mo",{},"<"], with ["mrow",{"tex":["<"]},[["mo",{},"<"]]], and that should fix the problem.

@dthies
Copy link
Owner

dthies commented Dec 20, 2015

An additional problem is that mouse over of < and > does not display the characters correctly but instead the encoded entities &lt; and &gt;.

@raybaranoski
Copy link
Author

Thank you very much, testing now...

@raybaranoski
Copy link
Author

Hi, sorry for the delay, but was able to look into this more as it initially did not work for me. I couldn't get the online configuration tool to respond positively, so I just worked directly in my environment. Is it ok to use ["mrow", {"tex":["<"]},[["mo",{},"<"]]], using the html decimal entity in the config.json, as this worked for me? Thanks again for your work on this... If you don't see an issue with using that value for <, then I'll be ok with this config option.

@dthies
Copy link
Owner

dthies commented Jan 12, 2016

Yes, I think that should be correct. I may have had that and mistakenly have let gitbub editor decode it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants