How to disable the insert link option from editor?
-
Hi Team Wpforo,
Before the 2022 theme of Wpforo, I was able to remove the “insert/edit link” and “remove link” from the Wpforo editor using the code:
function wpforo_custom_editor_toolbar( $settings ){
if(function_exists(‘WPF’)){
if( WPF()->current_user_groupid == 3 && isset($settings[‘tinymce’][‘toolbar1’]) ){
$settings[‘tinymce’][‘toolbar1’] = ‘fontsizeselect,bold,italic,underline,strikethrough,forecolor,bullist,numlist,hr,alignleft,aligncenter,alignright,alignjustify,blockquote,undo,redo,pastetext,emoticons,fullscreen’;
}
}
return $settings;
}
add_filter(‘wpforo_editor_settings’, ‘wpforo_custom_editor_toolbar’, 12);`However, after the new theme, the code is not working and I don’t know how to get the same functionality. Please help me because I want to avoid link spam in my forum section.
Regards,
VarunThe page I need help with: [log in to see the link]
The topic ‘How to disable the insert link option from editor?’ is closed to new replies.