I have a contenteditable area and it may have something like
Hello @abc @my| it was nice to see you
The | is my cursor, and want to get the text from the '@' symbol nearest to the cursor to the cursor position, so in this case, I want to get '@my'. I have completely no idea how can I get the text backward from a position.