Notifications
Clear all

wpForo 1.x.x I want to add an image button to the toolbar.

3 Posts
2 Users
0 Likes
811 Views
tural
Posts: 2
Topic starter
(@tural)
New Member
Joined: 2 years ago

I want to add an image button to the toolbar. Because the user cannot know how to add an image.

2 Replies
Tutrix
Posts: 871
(@tutrix)
Noble Member
Joined: 3 years ago

@tural

You can use the plugin wpForo Advanced Attachments to insert images directly into posts

Reply
tural
Posts: 2
Topic starter
(@tural)
New Member
Joined: 2 years ago

I used this code and now I can see the image icon in the editor. But I only see it when I try to add a new comment or post. When I want to edit a post or comment, I don't see the icon.

 

add_filter( 'wpforo_editor_settings', function( $settings ){
$settings['tinymce']['toolbar1'] .= ',image';
$settings['tinymce']['paste_as_text'] = 'true';
return $settings;
} );
Reply