Copy/paste doesn't duplicate the formatting
Create a note, write some text, apply some Bold, Strikeout or Italic. Copy/Paste the text somewhere in the note or another note. The formatting is lost in the copy.
I am using Eclipse Oxygen.2 Release (4.7.2) on Windows 10.
Hello @OzoneGrif,
Notepad4e uses Eclipse's StyledText underneath the hoods and what you are describing is actually an issue with the Eclipse implementation. In the copySelection method of the StyledText class, the following comment can be found:
//TODO RTF support
Nevertheless, Notepad4e's handling of RTF for things such as saving or undoing/redoing is not ideal to be honest, so I'll see whether I can improve it and possibly make the copy work properly as well. Otherwise we will have to wait for the Eclipse project itself to sort that functionality out. 😉
Cheers,
Pyves
I've taken a closer look at this issue. Some code sections are lacking in the StyledText widget and a lot of the methods and fields are private, in other words there is no easily accessible API that could be used in Notepad4e. I found a few related Eclipse bugs reports: Bug 52296 Bug 201795 Bug 106822
I've put votes on two of them so they get more attention, but unless I'm missing something, I don't think much can be done on Notepad4e's side at this point.