EnlighterJS / Plugin.WordPress

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

enlighter does not work with quizmaker plugin #260

Closed petr-hybler closed 4 years ago

petr-hybler commented 4 years ago

Hello Andi ... after the updates to 4.2 the plugin works nearly flawlessly ... in posts the highlighting is fantastic .. however, I have just noticed a weird behavior .... when using a quizMaker plugin (premium plugin) it does not highlight ... check out the samples

here is a screenshot of a perfectly working code Screenshot from 2020-05-03 20-16-38

and here is another one of not working code (inside QuizMaker) Screenshot from 2020-05-03 20-17-44

I noticed there is a difference where is the former screenshot has some DIVs generated Screenshot from 2020-05-03 20-18-21

whereas the latter one does not .. would you happen to know why? I check the console and there is no issue what so ever :(

AndiDittrich commented 4 years ago

Hi Petr,

are the EnlighterJS resources loaded on the pages which are generated with quizMaker ? is the content of the quizMaker plugin dynamically loaded via ajax/xhr ?

generally i cannot provide any kind of (free) support for paid plugins because i'm unable to use these kind of plugins within the dev environment.

petr-hybler commented 4 years ago

yup seems like it's loaded :( how can I check if it's loaded via AJAX?

AndiDittrich commented 4 years ago

chrome developer tools -> network -> XHR

petr-hybler commented 4 years ago

oh crap ... yes it is .. is that a big problem?

AndiDittrich commented 4 years ago

try Enlighter -> Extensions -> Dynamic Content

if this doesn't work you have to talk with the plugin authors to implement such hook

petr-hybler commented 4 years ago

could it mess up the existing highlighting?

AndiDittrich commented 4 years ago

no it just adds an event listener

petr-hybler commented 4 years ago

doesn't work :( thx anyway