Notifications
Clear all

Script [Solved] Removing items from text editor

7 Posts
4 Users
1 Likes
988 Views
Swarup
Posts: 10
Topic starter
(@swarup)
Active Member
Joined: 2 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: 1872
Moderator
(@alvina)
Member
Joined: 3 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
(@jacobbiere)
Joined: 3 months ago

Active Member
Posts: 14

@alvina  Where do I put that code?

 

jacobbiere
Posts: 14
(@jacobbiere)
Active Member
Joined: 3 months ago

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

 

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

Honorable Member
Posts: 393
jacobbiere
(@jacobbiere)
Joined: 3 months 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
(@jacobbiere)
Joined: 3 months ago

Active Member
Posts: 14

@verek Nevermind Im smart I got it done