I want to achieve the next result:
When i start type on each row from textarea input, to add at the beginning of the textarea this symbol: +.
The scenario is next:
- User start type on first line and after first typed letter should appears
+at the beginning of the row. - User clicks on enter and at the beginning of the second row should appear another
+, and so on.
At the end i should get something like this inside textarea:
+ text from first row
+ text from second row
... ... ...
demo: https://codesandbox.io/s/modest-hertz-tkyxv?file=/index.js
Now the idea does not work, because+signs are added every time when i type.
Question: How to achieve what i described above?