• Resolved Varun Pahwa

    (@varunpahwa)


    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,
    Varun

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support gVectors Dev

    (@gvectorsdevs)

    Hi @varunpahwa,
    Our Dev just checked your code and it works well, I guess you have inserted the code in a wrong place.

    It should be in your WordPress active themes functions.php file or you can use the code in your website by using Code Snippets plugin.

    Thread Starter Varun Pahwa

    (@varunpahwa)

    Hi there,

    I just refreshed the code snippet and it started working! Thanks for the help.

    Regards,
    Varun

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How to disable the insert link option from editor?’ is closed to new replies.