tutorbook icon indicating copy to clipboard operation
tutorbook copied to clipboard

Save formatting from textareas

Open nicholaschiang opened this issue 5 years ago • 1 comments
trafficstars

Is your feature request related to a problem? Please describe.

In the "Education and Experience" field, the new lines that you enter should be preserved. For example, a user might enter the following:

- Bachelors (Hons)
- Maths Masters (Hons)
- Applied Mathematics Professional
- Risk Analyst (8 months experience) Professional Experience
- Senior Subject Matter Expert
- Mathematics (present)

But then their profile shows up in the UserDialog without any of the newlines:

image

Describe the solution you'd like

We should:

  • Preserve the newlines and other formatting inputted into textareas.
  • Scrub the input into open ended text fields (i.e. ensure there isn't any profanity).
  • Perhaps even support some markdown formatting (using an external library OFC).

nicholaschiang avatar May 06 '20 22:05 nicholaschiang

On a similar note, we'll want to save the formatting on the new "Message" field in the RequestDialog and then include that formatting in the block quote we send to the recipient of the request.

On an unrelated note, we'll also probably want to make that "Message" field required and ensure that the responses land within a certain range of characters (to produce trust and such... like AirBNB's messages).

nicholaschiang avatar Jul 12 '20 07:07 nicholaschiang