Please tell var dummyContent how to modify the text in the var dummyContent variable using JS or JQuery, so that it can be inserted into the "Multiline text" field via copy \ past code, while the text is added normally, tagged and saved. do not judge strictly, went through many examples, nothing fits. Code:
function copy() { var dummyContent = 'Hello world'; var dummy = $('<input>').val(dummyContent).appendTo('body').select() document.execCommand('copy') } <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <input type="button" id="Copyitem" value="Копировать текст" onclick="copy();">