HOW TO CREATE A DROPDOWN BOX IN WORDPRESS 3.9 & TINYMCE 4

HOW TO CREATE A DROPDOWN BOX IN WORDPRESS 3.9 & TINYMCE 4

5
Share:

5 Comments

  1. I tested this and it's not working.. Is this a complete tutorial? thanks

    avatar
    Mark
    1. This works but there is a small bug, we are revisiting this tutorial within the next week to update it to iliminate the bug.

      avatar
      Admin
    2. The problem appears to be that there are a few places where quotes are omitted. For example, this filter call: add_filter( 'mce_buttons', ubl_add_tinymce_plugin ); There should be quotes around ubl_add_tinymce_plugin like so: add_filter( 'mce_buttons', 'ubl_add_tinymce_plugin' ); Otherwise, PHP thinks it is a constant and not a function name.

      avatar
      Chad Butler
  2. thank you very much

    avatar
    sara
  3. Thanks for this code, I have managed to create a drop down list in my WYSIWYG which I can now modify as I desire. I had to change 1 line of code though; add_filter( 'mce_buttons', ubl_add_tinymce_plugin ); had to be changed to add_filter( 'mce_buttons', 'ubl_add_tinymce_button' );

    avatar
    Mark Dressel

Leave a Comment

By posting you accept to signing up to our newsletters.
You are free to opt out at anytime by clicking on the link within the newsletter.
We will not give your personal information to any 3rd party companies, it will only stay with us.
Without accepting this you will not be able to comment.

Do you accept?