There is a textarea with id = "test".
1) How to make so that when you type in quotes (single or double) in textarea, a pair of quotes is substituted at once, and the cursor is positioned between them (as in development environments, ala sublime)?
2) How to make that if you enter a couple of quotes, then there would be no 4 of them in the end, but the second quotes would just go away (and in the sum of them there would be 2 left - again, as implemented in the code editors).
those. it is necessary that it be like this:
'→'. ' (where. - cursor position)
"→". "
"" → "".