Removing line breaks/new lines when copying
This commit is contained in:
parent
00f65d1130
commit
b69039e4d9
@ -4,7 +4,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="viSewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Smart Contract Creator</title>
|
||||
<meta name="description" content="Natural Language Form used to create text to incorporate or participate " />
|
||||
<meta name="keywords" content="Natural Language, Smart Contract, Ranchi Mall, Blockchain Contract, html5, css3, jquery" />
|
||||
@ -99,7 +99,7 @@
|
||||
/* Get the text from form and create new element for copying */
|
||||
var copyText = document.getElementById("nl-form");
|
||||
var textarea = document.createElement('textarea');
|
||||
textarea.value = copyText.innerText.slice(0, -5);
|
||||
textarea.value = copyText.innerText.slice(0, -5).replace(/\n/g, " ");
|
||||
document.body.appendChild(textarea);
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user