First - thanks for your work on this!

Now the problem: Although I can see the toolbar button in "Text and Formats" configuration section (/admin/config/content/formats/manage/full_html), I can add it to "Active toolbar" and save without any problems, the button doesn't appear in ckeditor toolbar in actual pages. I've even tried to patch original plugin.js file by following instructions from https://www.drupal.org/node/2215409 but no luck. (Actually, when I added editor.ui.addButton as suggested at the mentioned page, the button appeared, but not working.)

Pls help. Thanks!

CommentFileSizeAuthor
#4 2893184-4.patch560 byteswebflo

Comments

peske created an issue. See original summary.

dinarcon’s picture

Hi @peske,

There is a know issue that prevents this module to work. See https://www.drupal.org/node/2763607 for context. Until that is resolved, this sandbox does not work as expected. It is possible to enter MathJax formatted text and that gets converted to a formula, but it is far from being a nice and intuitive user experience. For now, using the https://www.drupal.org/project/mathjax is advised.

zarexogre’s picture

Gunna follow up on the issue you raised but comparing this module to codesnippet which works fine, this module is missing a libraries file and doesn't have a preprocess html or .module file, just wondered if this might be a factor, gunna have a play, but would like to get this working.

webflo’s picture

Status: Active » Needs review
StatusFileSize
new560 bytes

I debugged this issue with an unminified CKEditor in Drupal Core and came to the conclusion that this bug is related to the configurable toolbar.

The toolbar button is added automatically, everything works fine. The button name is "Mathjax" (capital M) because icons provided by the plugins are capitalized in addWidgetButtons. (https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/widget/plug...)

  • webflo authored ac2c52b on 8.x-1.x
    Issue #2893184 by webflo, dinarcon: Toolbar button missing
    
dinarcon’s picture

Priority: Normal » Major
Status: Needs review » Fixed
Related issues: +#2990973: Plugin not working on node view page

Thank you very much @webflo for figuring this out!

I tested the patch and it fixes the problem on the node edit page. I did further testing and noticed that the plugin does not quite work on the node view page. I opened #2990973: Plugin not working on node view page as a follow up. I plan to address it soon to be able to make a stable release of the module.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.