Bug 251320
| Summary: | sed this document.execCommand('copy') it's working in desktop not in IOS | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | bemes9226 |
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | webkit-bug-importer, wenson_hsieh |
| Priority: | P1 | Keywords: | InRadar |
| Version: | Safari 16 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
bemes9226
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);
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/105043623>