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

 

 

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.

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

 

Be Sociable, Share!

Leave a comment