I am using quiz module to create some practice quizzes for students
In this I wanted to have feature to create mathematical questions, chemical equations, Line structure bonds, etc type questions.
after googling a bit I found cool mathematical scientific keyboard application package with multiple options which works with AsciiMath, LaTeX, MathML and HTML syntaxes.

Visual Math Editor is freeware and opensource

This also has features for chemical formulas not chemical line structures
We can use either this websites resource or can install on own server

Probably developing it as plugin using that package will be more useful Package can be downloaded from here VisualMath Editor

You can see its working hereworking

Could you please support this probably as sub module something like " wysiwyg_ scientific " or "wyswyg_math" ?

Comments

TwoD’s picture

Status: Active » Postponed

I will take a look at it, but I can't promise anything. There are a lot of editors I would like to implement support for, but I must focus on the latest versions of the ones we already support first (currently way behind on that...).

It's still possible for other modules to implement editors through Wysiwyg's hooks even if we can't support it in the core module.

I will postpone this issue until then.

kaizerking’s picture

I understand the difficulty especially when there are lot of them.
It is unfortunate to note that this support has been pushed to backseat.
we have every editor implemented with one or the other modules. Unless we spread our wings and concentrate on education, scientific community and support their needs Drupal remains a CMS tool for web developers and wont be truly a people centric CMS.
if we have this support lot of educationists, scientists, students ....etc will use Drupal for every reason and increase user base.

we would need a virtual keyboard to type in the formulas or chemical molecules which cannot be done by normal qwerty key board
some work towards this is being done to get this functionality is under progress pl see this Scientific/mathematical keyboard
Visula matheditor uses Mathjax library, we already have the MathJax: LaTeX for Drupal module in drupal.I see these both can be effectively used to achieve the goal

TwoD’s picture

One problem I see with the Visual Math Editor is that its implementation is radically different from any other editor I've seen.

Instead of including a script file into the document and then call a function to create an editor instance to replace just a textarea, this editor appears to require that a new window be opened (with the editor pretty much in fullscreen mode to have it all fit).
Wysiwyg wasn't really built with that in mind. I'm pretty sure that could be dealt with in the integration layer by keeping track of the reference to the new window and close it if the user switches to a different format/editor.

One major issue there though is that the editor does not seem to offer any kind of API for other code to interact with it. I can't find a way to ask the editor for its contents so they can be safely synced with the original textarea before closing the editor window. That pretty much guarantees data loss if someone opens the editor, types something in it and then switches to another text format (or just disables the editor) without first explicitly saving from within the editor.

There appears to be no way of obtaining a version of the editor source code files which haven't been compressed to one single line, making it difficult to debug them and figure out what the editor is actually capable of, in the sense of communicating with external scripts. I'm not even sure it qualifies as GPL code if it doesn't publish an un-obfuscated version of the source code somewhere, but don't quote me on that.

Popup-blockers could also prevent so the user would never see the editor appear, but I guess the site using that editor would have to inform users about that possibility.

I can't actually support an integration of this editor without having the issues above addressed.

The other modules you mention look interesting, I haven't seen them before and I'll take a close look soon.