我有一个文本区,当我按Enter键时,我需要插入一个自定义{br}标记,而不是在新行上换行文本。我已经用CSS解决了换行问题,问题是当我按下回车键时,标签插入到字符串的末尾。我如何将它插入到输入的相同位置?