wordpress snippets last updated   : August 18, 2014
we now have 638 snippets

Add cut, copy and paste buttons to the tinymce editor

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will enable 3 new buttons within the TinyMCE editor “cut, copy and paste”.

snippet :  PHPcopy
function enable_more_buttons($buttons) {
  $buttons[] = 'copy';
  $buttons[] = 'cut';
  $buttons[] = 'paste';
 return $buttons;
}
add_filter("mce_buttons_2", "enable_more_buttons");

Option

As pointed out by Myst1010 on another post you could use this simplified method to enable tinyMCE buttons.

snippet :  PHPcopy
function enable_more_buttons($buttons) {
  $buttons[] = 'copy,cut,paste';
 return $buttons;
}
add_filter("mce_buttons_2", "enable_more_buttons");

Did you like this post? If so please share it with your friends. Thanks!

  • http://moz-blogs.com/blogs Elisio Leonardo

    Hi Kevin, your snippets are really knows and i will love to show it to my users…

    I will always put a link to the original source:this blog!

    • http://wpsnipp.com Kevin Chard

      Elisio Leonardo cool glad you like the site and a link back would be fantastic.

  • Myst1010

    (Translated by program)
    These buttons I did not know, great functionality.
    And thanks for mentioning my suggestion.
    His tricks are great and I wish much success to your blog.

    • http://wpsnipp.com Kevin Chard

      no problem Myst1010, glad you like it.

jqsnipp.com | we just launched jquery snippets website