**/
Roo.util.Clipboard = {
- write : function(textToCopy) {
+ write : function(text) {
// navigator clipboard api needs a secure context (https)
if (navigator.clipboard && window.isSecureContext) {
// navigator clipboard api method'
- navigator.clipboard.writeText(textToCopy);
+ navigator.clipboard.writeText(text);
return ;
}
// text area method
var ta = document.createElement("textarea");
- ta.value = textToCopy;
+ ta.value = text;
// make the textarea out of viewport
ta.style.position = "fixed";
ta.style.left = "-999999px";
**/
Roo.util.Clipboard = {
- write : function(textToCopy) {
+ write : function(text) {
// navigator clipboard api needs a secure context (https)
if (navigator.clipboard && window.isSecureContext) {
// navigator clipboard api method'
- navigator.clipboard.writeText(textToCopy);
+ navigator.clipboard.writeText(text);
return ;
}
// text area method
var ta = document.createElement("textarea");
- ta.value = textToCopy;
+ ta.value = text;
// make the textarea out of viewport
ta.style.position = "fixed";
ta.style.left = "-999999px";