2952 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+10 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?

20 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 500+ members
  • Has sold $250,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+7 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
  • Has been part of the Envato Community for over 5 years
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+10 more
DDStudios says

Cool.

I’ll try that. Thanks!

2952 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+10 more
DDStudios says

Thanks beautiful. That worked perfectly!

by
by
by
by
by
by