Greetings to all. It is necessary to get the contents of the clipboard, but I ran into some problem. First of all, I want to emphasize the fact that I need to get data from the buffer with a modern macar, and that means using the "clipboard API and EVENTS"

//Вешаем событие onpaste, котороя срабатывает при вставке текстовых данные в поле input input.addEventListener("paste", function(e) { // Собственно, выводим данные из буфера в консоль console.log(e.clipboardData.getData("text/plain")); // Таким образом я легко получаю содержимое буфера // но проблема в том, что в спецификации указано, что //методы getData, setData, clearData устаревшие, а аналогов я не встретил. // Т.к. вышеуказанные методы считаются устаревшими, каким образом //я могу получать данные из буфера и записывать их туда? //Имеется ли замена устаревшим методам? }); 

  • On Habré passed information that this will be possible only in chrome 43 .... - Vadim
  • That is, at the moment, it is necessary to use outdated methods? - Hit-or-miss
  • At the moment, nothing like me failed to find. - Vadim
  • Why I was not born in 20 years so that everything was stable (((( - Hit-or-miss

0