Comments SooBahkDo started the conversationMarch 11, 2019 at 8:14pmWhat 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 894Zhivko repliedMarch 15, 2019 at 4:51pmHi,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 DeveloperSooBahkDo repliedMarch 15, 2019 at 5:09pmThank 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. Sign in to reply ...
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
Hi,
Try following filter:
Place it in your theme functions.php file.
Stachethemes Developer
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.