[Resolved] How to change Rich text editor (WYSIWYG) to a plain text editor
This thread is resolved. Here is a description of the problem and solution.
Problem:
It is not possible to disable the Wysiwyg controls on the post body added to a CRED form. The client wants to replace it with a multiline text field, and then when the form is submitted update the actual post body with the contents from the multiline text field.
Solution:
Add a generic multiline text field to your CRED form, e.g. with a slug of false-body. Then add the following code to your theme's functions.php file (or using a plugin such as Code Snippets), editing the form id as required.
As requested separating questions into separate tickets -
1. How to change Rich text editor (WYSIWYG) to a plain text editor
There is no way to change the main post body input to restrict WYSIWYG capabilities, but you could remove the post body field and replace it with a multiline custom field. No WYSIWYG features are included in a multiline custom field.
Okay, how do I ensure the multi line custom field content is inserted into the main body of the post?
Use a generic multiline text field in your form rather than creating a Types multiline field, in which case the field will be submitted with the form but won't itself be stored in the database.