Project

General

Profile

Bug #7792

Math plugins mayhem with CKeditor

Added by Yannick Warnier about 4 years ago. Updated about 4 years ago.

Status:
Bug resolved
Priority:
Normal
Category:
Documents
Target version:
Start date:
13/08/2015
Due date:
% Done:

100%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

With the new implementation of CKeditor, there is a mathematical plugins chaos, so to speak, and I need a clear understanding.

When searching the term "math" in the platform settings, I get this:

I don't care about the two options in grey (for now).
When I activate them all (as shown in the screenshot) and I go to create a new document in extended view, I get these icons:

Which means (apparently) that when I select 4 options, I only get 2 new icons (a bit weird - except if these 2 missing icons are maybe only available in a certain tool?)

Additionally, when I use the "Sum" icon (the chart icon is fine) and I use the default formula, I see it fine while I'm in the editor, but as soon as I save the document, I see the source of the formula, not the drawing of the formula.

I need some cleanup here...
If we lost some options, then I need to remove them from settings_current (but then I need to know which ones they are so I don't remove the bad ones).
In any case, that formula thing needs to be fixed.


Files

mathsettings.png (16 KB) mathsettings.png Yannick Warnier, 13/08/2015 16:42
mathckeditor.png (7.12 KB) mathckeditor.png Yannick Warnier, 13/08/2015 16:42
formula.png (11.1 KB) formula.png Yannick Warnier, 13/08/2015 16:43

Associated revisions

Revision 5331084f (diff)
Added by Julio Montoya about 4 years ago

Add mathajax lib see #7792

Revision 1fa4021d (diff)
Added by Yannick Warnier about 4 years ago

Remove unused settings from database - refs #7792

Revision 558e1da7 (diff)
Added by Yannick Warnier about 4 years ago

Restablish used setting in database (error in previous commit) - refs #7792

History

#1

Updated by Yannick Warnier about 4 years ago

#2

Updated by Julio Montoya about 4 years ago

  • Status changed from Assigned to Needs more info
  • Assignee changed from Julio Montoya to Yannick Warnier

math_mimetex (should be removed)
enabled_asciisvg (should be removed)

math_asciimathML (is the SUM icon)
Mathajax (the graph icon)

Load the ASCIHTML field should eb replaced with "Load the Mathajax file everywhere" Mathajax is used to render ascimath

I just added a fix to see the formula correctly (composer update needed).

#3

Updated by Yannick Warnier about 4 years ago

  • Status changed from Needs more info to Bug resolved
  • % Done changed from 0 to 100

Mathjax is not the option that enables the graph icon. It's the enabled_asciisvg that does.
I removed math_mimetex which was not used anymore and changed the text for the global js files.
Apparently, now you have to enable math_asciimathML to have the sum icon and the mathjax option, otherwise you can build the formula but you can never see it.

Something to improve, but it's good enough for now.

Also available in: Atom PDF