AudioJungle

TinyMCE HTML Custom Buttons gone on WP 3.1

2952 posts
  • Attended a Community Meetup
  • Australia
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Contributed a Blog Post
  • Elite Author
  • Exclusive Author
+6 more
DDStudios says

Apparently they have upgraded TinyMCE with wordpress 3.1. The problem is, the standard form to add buttons in the HTML view of the editor has changed.

edButtons[edButtons.length] = new edButton('dd_one',

    'one',
    '[one] ',
    ' [/one] ',
    ''

);

Doesn’t seem to work anymore.

Anyone has gotten any info on that?

18 posts
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 200 and 499 users
+1 more
olegnax says

Hi DD,

Just add your custom quicktags script by wp_enqueue_script() function with dependencies on quicktags script.

For example:

wp_enqueue_script('custom_quicktags', get_template_directory_uri() .'/functions/shortcodes/quicktags.js', array('quicktags'), '1.0);

Cheers.

2952 posts
  • Attended a Community Meetup
  • Australia
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Contributed a Blog Post
  • Elite Author
  • Exclusive Author
+6 more
DDStudios says

Cool.

I’ll try that. Thanks!

2952 posts
  • Attended a Community Meetup
  • Australia
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Contributed a Blog Post
  • Elite Author
  • Exclusive Author
+6 more
DDStudios says

Thanks beautiful. That worked perfectly!

by
by
by
by
by