Bug 575644 - Pasting styled text (RTF) in StyledText control pastes only the text without styling
Summary: Pasting styled text (RTF) in StyledText control pastes only the text without ...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.22   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-26 08:11 EDT by Fredrik Ahlström CLA
Modified: 2021-08-26 08:11 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fredrik Ahlström CLA 2021-08-26 08:11:06 EDT
When pasting (Ctrl-v) from the clipboard to a StyledText control the styling is missing.

Copying from a StyledText control works because a RTFTransfer instance is created and used.
In the paste() function no attempt to look for the RTFTransfer is done, which means the styling is lost.