Does anyone know how to create a custom dropdown box in tinymce for WordPress?
I need it to work with at least wordpress 3.0.
I have searched the internet for a tutorial on this and I cannot find one. A link to a website tutorial would be great.
Thanks in advance.
I know this question was already asked some time ago, but as I stumbled across the same problem, I tought I’d answer this question anyways. Maybe it helps someone else.
The comments in the source of the DropDown-Control in tinyMCE turned out to be really helpful.
You just need to create a dropdown first, using
createDropMenu()
, then you can call theadd()
method to add items to the dropdown.this adds a button so you just need to tweak it to make a drop down box
you will then need to add the to the js file