Jul 22, 2021 3:29 pm
I want to add an image button to the toolbar. Because the user cannot know how to add an image.
2 Replies
Jul 22, 2021 4:41 pm
You can use the plugin wpForo Advanced Attachments to insert images directly into posts
Jul 23, 2021 8:31 am
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;
} );