Home / admin / Add cut, copy and paste buttons to the tinymce editor
  • Add cut, copy and paste buttons to the tinymce editor

    add-cut-copy-and-paste-buttons-to-the-tinymce-editor

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

    wordpress snippet : PHP

    <>
    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.

    wordpress snippet : PHP

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

    ( WordPress codex functions, hooks, in this snippet. )

    add_filter,
  • 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.

Build a better with wpsnipp.com

Weekly snippets, themes, deals coupons roundup.

x No Thanks