Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!

Merry Christmas and Happy Holidays! 🎄

wpForo 1.x.x [Solved] Problem with TinyMCE editor customization

3 Posts
2 Users
0 Reactions
1,361 Views
Posts: 5
Topic starter
(@jaypad)
Active Member
Joined: 5 years ago

Hello,

I wish to let my forum users use more functionnalities than the standard toolbar is offering. In order to do that, I add in my functions.php the following code

add_filter( 'wp_editor_settings', function( $settings ){
if ( empty( $settings['tinymce'] ) || ! is_array( $settings['tinymce'] ) )
$settings['tinymce'] = [];

$settings['tinymce']['toolbar1'] = 'cut,copy,paste,pastetext,undo,redo,hr,link,unlink,blockquote,pre,wpf_spoil,source_code,fullscreen,|,fontsizeselect,bold,italic,underline,strikethrough,subscript,superscript,forecolor,backcolor,removeformat,alignleft,aligncenter,alignright,bullist,numlist,outdent,indent,wp_adv,emoticons';
return $settings;
});

And... it works, unless for editing posts, where the new toolbar settings don't work, I just have the standard toolbar.

So, I would like to know if there is a way to make the cutomization work in all the situations where the editor is involved.

 


2 Replies
Alvina
Posts: 1860
Moderator
(@alvina)
Member
Joined: 6 years ago

Hi @jaypad,

Instead of this hook:

wp_editor_settings

You should use the following one:

wpforo_editor_settings

Posts: 5
Topic starter
(@jaypad)
Active Member
Joined: 5 years ago

Thanks a lot, it works now.