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);

copytext document.execCommand('copy') is deprecated so IOS devices not supporting
 
 
Q