Bug 251320 - sed this document.execCommand('copy') it's working in desktop not in IOS
Summary: sed this document.execCommand('copy') it's working in desktop not in IOS
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Safari 16
Hardware: Unspecified Unspecified
: P1 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-01-28 11:39 PST by bemes9226
Modified: 2023-02-04 11:40 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bemes9226 2023-01-28 11:39:34 PST
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);
Comment 1 Radar WebKit Bug Importer 2023-02-04 11:40:18 PST
<rdar://problem/105043623>