0

I'm editing a Wordpress Plugin, trying to add another button. I had a look to this question (Add custom TinyMCE 4 Button, Usable since WordPress 3.9-beta1). But it doesn't work

The JS file: https://www.nonsolodiete.it/wp-content/plugins/perfect-pullquotes/perfect-pullquotes.js

The second button is not visible

enter image description here

The JS file (collapsed)

enter image description here

The impossible to debug JS error reported by Chrome..

enter image description here

What can I try?

0

The problem was related to the PHP file.

The Javascript file can contain two buttons but must be referenced twice as shown in the picture.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.