EnlighterJS / Plugin.WordPress

:package: Official WordPress Plugin of EnlighterJS
http://wordpress.org/plugins/enlighter/
GNU General Public License v2.0
118 stars 17 forks source link

MooTwo theme in v4.2 is broken #273

Closed notastudio closed 4 years ago

notastudio commented 4 years ago

System info:

Server
PHP Version: 7.3.13
PHP JSON Extension: available
Server Software: Linux
Components
Enlighter Plugin: 4.2 CE
EnlighterJS Version: 3.3.0
TinyMCE Extension: 5.0.1
Gutenberg Extension: 1.0.0
Theme Customizer: 2.2.0
WP-Skeleton Version: 0.23.0
Environment
Cache writeable: true
Shortcode Processor: Enlighter low-level

I have updated from v3 to v4.2 right now and noticed that all of my code blocks in articles are not highlighted, and the toolbar is also broken: Snipaste_2020-06-01_21-36-38 If I switch to another theme, everything is ok. Only MooTwo has problems. No errors are reported in the browser console.

AndiDittrich commented 4 years ago

take a look into the theme list... the legacy "mootwo" theme has been removed. as replacement "mowtwo" has been added - see https://github.com/EnlighterJS/EnlighterJS/tree/master/src/themes

notastudio commented 4 years ago

take a look into the theme list... the legacy "mootwo" theme has been removed. as replacement "mowtwo" has been added - see https://github.com/EnlighterJS/EnlighterJS/tree/master/src/themes

This is weird... There's only "mootwo", no "mowtwo" in the drop-down list. image

AndiDittrich commented 4 years ago

thanks for that hint, it's a typo within the select list. mowtwo is the correct identifier

AndiDittrich commented 4 years ago

it's fixed in the master branch

notastudio commented 4 years ago

thanks!

AndiDittrich commented 4 years ago

as a workaround, you can alter the theme list by using the filters (see documentation) and add the correct theme identifier