Clear all

Script [Solved] Removing items from text editor

7 Posts
4 Users
Posts: 9
Topic starter
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
Posts: 1869
Joined: 5 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
Joined: 2 years ago

Active Member
Posts: 14

@alvina  Where do I put that code?


Posts: 14
Active Member
Joined: 2 years ago

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


3 Replies
Joined: 6 years ago

Honorable Member
Posts: 507
Joined: 2 years 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



Joined: 2 years ago

Active Member
Posts: 14

@verek Nevermind Im smart I got it done