Adds a wysiwyg to the plant description component to allow for rich text editing.
Plant image validation
The problem
The form submission failed if a user didn't upload a plant image. It attempted to send to the back end but threw an error.
The solution
Adds validation code to ensure a url is present before submitting form. If there is an empty string it displays an error message to the user to upload an image
TinyMCE
Adds a wysiwyg to the plant description component to allow for rich text editing.
Plant image validation
The problem The form submission failed if a user didn't upload a plant image. It attempted to send to the back end but threw an error.
The solution Adds validation code to ensure a url is present before submitting form. If there is an empty string it displays an error message to the user to upload an image