diff --git a/examples/particle_explorer/particleExplorer.html b/examples/particle_explorer/particleExplorer.html index a369eaf648..d69d221306 100644 --- a/examples/particle_explorer/particleExplorer.html +++ b/examples/particle_explorer/particleExplorer.html @@ -43,16 +43,7 @@ body{ #exported-props { /* Set the margin-left and margin-right automatically set */ color: white; - white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */ - white-space: -pre-wrap; /* Opera 4-6 */ - white-space: -o-pre-wrap; /* Opera 7 */ white-space: pre-wrap; /* css-3 */ - word-wrap: break-word; /* Internet Explorer 5.5+ */ - white-space: -webkit-pre-wrap; /* Newer versions of Chrome/Safari*/ - word-break: break-all; - white-space: normal; - - } diff --git a/examples/particle_explorer/particleExplorer.js b/examples/particle_explorer/particleExplorer.js index b9f2ca7c8b..a3cfd32676 100644 --- a/examples/particle_explorer/particleExplorer.js +++ b/examples/particle_explorer/particleExplorer.js @@ -432,9 +432,11 @@ function showPreselectedPrompt() { var buttonnode= document.createElement('input'); buttonnode.setAttribute('type','button'); buttonnode.setAttribute('value','close'); - elem.appendChild(document.createTextNode("COPY THE BELOW TO CLIPBOARD:")); + elem.appendChild(document.createTextNode("COPY THE BELOW FIELD TO CLIPBOARD:")); elem.appendChild(document.createElement("br")); - elem.appendChild(document.createTextNode(exportSettings)); + var textAreaNode = document.createElement("textarea"); + textAreaNode.value = exportSettings; + elem.appendChild(textAreaNode); elem.appendChild(document.createElement("br")); elem.appendChild(buttonnode);