Notifications
Clear all

Script [Solved] Removing items from text editor

7 Posts
4 Users
3 Reactions
1,898 Views
Posts: 9
Topic starter
(@swarup)
Eminent Member
Joined: 4 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: 1867
Moderator
(@alvina)
Member
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
(@jacobbiere)
Joined: 2 years ago

Active Member
Posts: 14

@alvina  Where do I put that code?

 

Posts: 14
(@jacobbiere)
Active Member
Joined: 2 years ago

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

 

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

Honorable Member
Posts: 522
(@jacobbiere)
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

Thanks

 

(@jacobbiere)
Joined: 2 years ago

Active Member
Posts: 14

@verek Nevermind Im smart I got it done