Okay
  Public Ticket #1928878
Full Editor on Event Description
Closed

Comments

  • SooBahkDo started the conversation

    What code snippet can we add to enable the WP TinyMCE editor  (not gutenberg)  on the front end user submitted event description field so that event authors can use some safe html?

    Visual or text editor mode would be useful.

    https://make.wordpress.org/support/user-manual/content/editors/#visual-editor

     Please advise

  •  894
    Zhivko replied

    Hi,

    Try following filter:

    add_filter('stec-create-event-form-front', function($data) {
        $data['fields']['description'] = wp_editor('','stec-submit-event-description', array(
            'textarea_name' => 'description'
        ));
        return $data;
    });

    Place it in your theme functions.php file.


    Stachethemes Developer

  • SooBahkDo replied

    Thank you!

    This would be a nice option setting to consider adding in a future update. 

    Toggle TinyMCE on or off.

    Perhaps even add option setting to toggle Gutenberg on/off for front end user event descriptions.