javascript - Questions about text insertion
淡淡烟草味
淡淡烟草味 2017-05-19 10:25:53
0
1
698

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.

淡淡烟草味
淡淡烟草味

reply all(1)
过去多啦不再A梦

textarea Tag implementation? Can the questioner take a look at how the rich text editor is implemented, or directly introduce the rich text editor?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template