1. Ask a question, does jquery have a way to splice text? For example, if I have a form that already has content, and I click a button to execute an event and connect the content to the back of that text, I can still only get the content of the original text. Then fill it in after string concatenation.
2. The second question is, as shown below, my cursor stays between the texts. How can I insert the text to the cursor through the button execution event?
Actually, I want to implement the function of adding emoticons to the chat window, just like the chat window of QQ. Click on the emoticon, and the emoticon will be inserted when the cursor stays.
textarea
Tag implementation? Can the questioner take a look at how the rich text editor is implemented, or directly introduce the rich text editor?