Switch between WYSIWYG and plain for user

Solved3.59K viewsCore
0

Allow switch between normal and WYSIWYG editor for users like wordpress editor.

So the user can always change to normal (plain) text with all the html stuff in it.

And also please disable the “read more” button, because its useless for questions 😉

1

Here you go:

function my_anspress_form_settings($settings){
	$settings['quicktags'] = true;

	return $settings;
}
add_filter( 'ap_ask_form_editor_settings', 'my_anspress_form_settings');
add_filter( 'ap_answer_form_editor_settings', 'my_anspress_form_settings');

Great 🙂
Can you also add a button to toggle the two modes?

As I said you have to do it by yourself, I will not add editor toggle by default. Why dont you use gist plugin for codes 😉

You are viewing 1 out of 1 answers, click here to view all answers.