Add custom TinyMCE 4 Button: Is it mandatory to have one JS per button?

admin2025-06-06  2

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: .js

The second button is not visible

The JS file (collapsed)

The impossible to debug JS error reported by Chrome..

What can I try?

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

The JS file (collapsed)

The impossible to debug JS error reported by Chrome..

What can I try?

Share Improve this question asked Nov 7, 2018 at 22:41 ReviousRevious 3233 silver badges16 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 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.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749198714a317191.html

最新回复(0)