Notifications
Clear all

Script [Solved] Removing items from text editor

7 Posts
4 Users
2 Likes
1,619 Views
Posts: 9
Topic starter
(@swarup)
Eminent Member
Joined: 3 years ago

Hi. Kindly check the attached picture.

I want to remove some items for my users from the text editor.

Kindly tell me the process and how to do it.

I will be thankful to you.

6 Replies
Alvina
Posts: 1869
Moderator
(@alvina)
Member
Joined: 4 years ago

Hi @swarup,

That's very easy to do with 'wpforo_editor_settings' filter hook. Put this code in your current active WordPress theme functions.php file. You can see all button names in 3rd line of this code, just remove whichever you want.

function wpforo_custom_editor_toolbar( $settings ){
if( isset($settings['tinymce']['toolbar1']) ){
$settings['tinymce']['toolbar1'] = 'fontsizeselect,bold,italic,underline,strikethrough,forecolor,bullist,numlist,hr,alignleft,aligncenter,alignright,alignjustify,link,unlink,blockquote,pre,wpf_spoil,undo,redo,pastetext,source_code,emoticons,fullscreen';
}
return $settings;
}
add_filter('wpforo_editor_settings', 'wpforo_custom_editor_toolbar', 12);
1 Reply
(@jacobbiere)
Joined: 1 year ago

Active Member
Posts: 14

@alvina  Where do I put that code?

 

Posts: 14
(@jacobbiere)
Active Member
Joined: 1 year ago

Are these files accessed through sftp? or another part of my site?

 

3 Replies
VereK
(@verek)
Joined: 6 years ago

Honorable Member
Posts: 482
(@jacobbiere)
Joined: 1 year ago

Active Member
Posts: 14

@verek so in this situation how do I follow the steps above I might need a bit of a walkthrough

Thanks

 

(@jacobbiere)
Joined: 1 year ago

Active Member
Posts: 14

@verek Nevermind Im smart I got it done