Button in editor to toggle text/html

3.98K viewsGeneral
0

I know I can set up default text or html editors for the questions and answers, but is there way to allow the user to switch back and forth?

0

Hello Curtis,

All you need is this filter:

ap_tinymce_editor_settings

Check here for more:

https://github.com/anspress/anspress/blob/ed8a87e250f7e430c6d7edfc3a04c4950f3e08b5/includes/ask-form.php#L325

You need to override both tinymce and quicktag to true.

commented on answer