A
A
Alex2015-01-26 15:58:22
JavaScript
Alex, 2015-01-26 15:58:22

How to insert text into a field?

I made a small browser extension with a context menu.
When you click on a menu item, a pre-prepared text should be inserted into the form.
Those. It should work as if the user will paste the text from the clipboard, but it is the pre-prepared text that is inserted.
Question: How to implement such an insertion of text?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav 21rpk, 2015-01-26
@vlad7rpk

madapaja.github.io/jquery.selection

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question