Post

Replies

Boosts

Views

Activity

copytext document.execCommand('copy') is deprecated so IOS devices not supporting
I have text in webapp when select some text and clicked on copytext button,in desktop its working fine by using document.execCommand('copy') but its not working in IOS devices like ipad/iphone.is it ave any alternative method for this. when i select rich text from webapp clicked on copytext button then pasted in word in desktop its working fine with format and styles, but in ios(ipad..) its not pasted any content.its nothing copied. when i select text we are getting selectedtextRange as plain text so how we can get with styles. let selectedText = RangeUtils.getPlainTextFromRange(this.selectedTextRange); this.clipboardService.copyFromContent(selectedText);
0
0
773
Jan ’23