Every line of 'clipboarddata' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
25 get(): any { 26 return this.data; 27 }
17 getData (type: string) { 18 return getClipboardData(type) 19 }
53 export function getClipboardAsPlaintext(e: ClipboardEvent): string { 54 if (e.clipboardData) { 55 return e.clipboardData.getData("text/plain"); 56 } 57 return ((window as unknown) as IEWindow).clipboardData.getData("Text"); 58 }
145 _setClipboardData(data) { 146 if (this._clipboardNodeData) { 147 var treeElement = this.findTreeElement(this._clipboardNodeData.node); 148 if (treeElement) 149 treeElement.setInClipboard(false); 150 delete this._clipboardNodeData; 151 } 152 153 if (data) { 154 var treeElement = this.findTreeElement(data.node); 155 if (treeElement) 156 treeElement.setInClipboard(true); 157 this._clipboardNodeData = data; 158 } 159 }