@gregoriusrippenstein/node-red-contrib-introspection 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -318,6 +318,13 @@
318
318
  document.body.removeChild(downloadLink);
319
319
  });
320
320
 
321
+ $('#node-screenshot-copy-to-clipboard-svg').on("click", function (e) {
322
+ e.preventDefault();
323
+ if ( RED.clipboard.copyText(that.editor.getValue()) ) {
324
+ RED.notify("SVG copied to clipboard", { type: "success" });
325
+ }
326
+ });
327
+
321
328
  $("#node-input-format").on("change", function() {
322
329
  var mod = "ace/mode/"+$("#node-input-format").val();
323
330
  that.editor.getSession().setMode({
@@ -405,7 +412,8 @@
405
412
  </div>
406
413
 
407
414
  <div class="form-row">
408
- <button type="button" id="node-screenshot-download-svg" class="red-ui-button red-ui-button-small"><i class="fa fa-download"></i>Download</button>
415
+ <button type="button" id="node-screenshot-download-svg" class="red-ui-button red-ui-button-large"><i class="fa fa-download"></i>Download</button>
416
+ <button type="button" id="node-screenshot-copy-to-clipboard-svg" class="red-ui-button red-ui-button-large"><i class="fa fa-clipboard"></i>Copy to Clipboard</button>
409
417
  </div>
410
418
  </script>
411
419
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gregoriusrippenstein/node-red-contrib-introspection",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "keywords": [
5
5
  "node-red"
6
6
  ],