• Resolved jemetos

    (@jemetos)


    Hi

    I am enjoying Directorist and I have added quite a few listings on my website. I now want to allow users to add listings. (The next stage will be to use your plugins for Paid Listings). I went through a similar evolution a few years back with a similar directory on Joomla.

    My question is can I limit the editor available for the Listing Form? I thought that I had seen something in settings but maybe it was another plugin.

    I want to remove the Text input tab so that there is no chance of people adding code etc.

    Many thanks.

    R

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello Jemetos,
    Thank you for choosing our service.

    You can disable the text editor for the general users by following the settings shown in the screenshot below.

    screenshot

    View post on imgur.com

    Regards.

    Thread Starter jemetos

    (@jemetos)

    Hi

    Thanks for the reply. I do not want to switch off the field. I wanted to change the Editor – so that the user does not have full access to add code.

    I want to change it so that the user can only input plain text – or just a few formatting such as bold.

    Hello Jemetos,
    Sorry for the misunderstanding. Please add the following filter hook in your themes functions.php file to disable the Text tab from the description field.

    
    add_filter('atbdp_add_listing_wp_editor_settings', function( $content ) {
      
        $content['quicktags'] = false;
      
        return $content;
    });
    

    Regards.

    • This reply was modified 4 years, 10 months ago by aazztech.
    • This reply was modified 4 years, 10 months ago by aazztech.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Editor’ is closed to new replies.