This js code. Why not execute it after adding a rich text editor?

want to achieve this function, in a list of posts. Click the reply button of a layer
and then @ username to the reply editor.
if it is a normal < textarea id= "id_body" name= "aaaa" > < / textarea >
, it works as follows:

clipboard.png

:




kindeditor

clipboard.png


clipboard.png

Click the reply button. Automatically added to the reply editor

should there be a conflict in the above code?
I don"t know anything about js. After searching for a long time, it was not solved


if you use a rich text editor, you should use its API. The textarea is hidden. What else do you do with it?

Menu