.paste()


.paste()Returns: jQuery

Description: Pastes clipboard contents to elements.

  • version added: w0.2.paste()

    • This method does not accept any arguments.

Note: This function is only availible in the withPaste version of jQlipboard.

This function will paste the contents of the clipboard within an element.

Consider the following example:

1
2
3
4
5
6
7
<div>
<p class="paste"></p>
</div>

<script>
$( ".paste" ).paste();
</script>

Any text from the clipboard will be pasted in the element.