Posted 20 September 2018, 1:53 pm EST
By turning on [autoClipboard]=“true”, I can copy and paste data with Crtl + C or Ctrl + V
I also need to create a ‘Paste’ button so user can paste by clicking this button.
I have try this but the ‘text’ in clipboard is always an empty string. What am I missing here? Thank you very much.
pasteData() {
wjCore.Clipboard.paste((data) => {
console.log(‘data’, data);
this.flex.autoClipboard = false;
this.flex.setClipString(data);
this.flex.autoClipboard = true;
});
}
