• Resolved GregW

    (@gwmbox)


    Is there a way I can use the Giutenberg style editor in Ultimate Member textarea fields?

    If so how do I limit it to specific options (similar to WP support Messages here) so they can bold, italic, change text colour and so on but not allow things like links?

    Alternatively, how do I edit the Classic Visual editor in Ultimate Member to remove tools from the tool bar, e.g. links, text type dropdown (paragraph, headings etc)?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support andrewshu

    (@andrewshu)

    Hello @gwmbox

    Do you mean the textarea field in profile form?

    Regards.

    Thread Starter GregW

    (@gwmbox)

    yes ??

    Plugin Support andrewshu

    (@andrewshu)

    Hello @gwmbox

    For visual editor you could use this hook in your functions.php file in your child theme folder:

    add_filter( 'um_form_fields_textarea_settings', 'my_textarea_settings', 10, 1 );
    function my_textarea_settings( $textarea_settings ) {
    	$textarea_settings['tinymce']['toolbar1'] = 'bullist,numlist,bold,italic,underline,forecolor,blockquote,hr,removeformat,unlink,undo,redo';
    
    	return $textarea_settings;
    }

    Also, you could delete elements by yourself form here – $textarea_settings[‘tinymce’][‘toolbar1’].

    Regards.

    Thread Starter GregW

    (@gwmbox)

    Thanks ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Limit options in Gutenberg/Visual textarea fields’ is closed to new replies.