[whatwg/dom] document.execCommand('copy') is deprecated so is it any other solution for support ios device. (Issue #1144)

i used this document.execCommand('copy') but its not copied in ios devices, when i select rich text from webapp clicked on copytext button then pasted in word in desktop its working fine with styles, but in ios(ipad..) its not pasted any content.
need to work as desktop ,it will pasted with styles formatting.but not in ios.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);
note:i found one solution but its giving white spaces and styles not applied in word.
.copyFromContent(selectedText);

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1144
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1144@github.com>

Received on Wednesday, 18 January 2023 17:16:57 UTC