Jump to content

Recommended Posts

I encountered a very weird thing in Affinity Designer. Many times I have text in my designs, and I copy-paste that text when I am creating the HTML files with SublimeText. It works fine with photoshop and illustrator, but for some reason it doesn't work with AD. The proble, is that when I copy text in AD, and then try to paste that text in SublimeText, it doesn't work (doesn't paste the text). It is VERY weird!

 

Am I doing something wrong, or is this a bug of some kind?  

Share this post


Link to post
Share on other sites

Which tool is active when you copy? At the moment, If you select the text with the text tool, we put RTF and plain text on the clipboard, and SublimeText ought to be able to use one of those. However, if you have the text selected with the Move tool, we put SVG on the clipboard instead of text. It may be that Illustrator understands the SVG and SublimeText doesn't. Does it work if you use the Art Text tool?

Share this post


Link to post
Share on other sites

I am using the text tool (the A icon). I select the text that I want to copy with it, I copy it, and when I paste into SublimeText, nothing happens. 

Share this post


Link to post
Share on other sites

I have tried this using a trial versions of Sublime Text 2.0.2, and both App Store and beta versions of Affinity Designer. For me it always works, provided only that Designer is still running when you do the paste. (We clear the clipboard on exit to avoid having to render the variety of formats we offer to the clipboard.) However, if our app is closed we won't paste into Illustrator, either, and you say that works. Sublime Text seems to accept plain text from the clipboard, and I can't see why pasting into Sublime Text would fail and then into Illustrator would work. Can you tell us any more about what you are doing?

Share this post


Link to post
Share on other sites

That version works for me too: build 3065. (I didn't try it before because it says it is a beta.)

 

If you can paste into TextEdit and into Photoshop and Illustrator, I wonder if it is a bug in Sublime Text.

Share this post


Link to post
Share on other sites

I doubt it is a bug with SublimeText.

 

I think that you misunderstood me about Photoshop and Illustrator. I said that when I copy text from Photoshop and Illustrator and I paste it into SublimeText, it works fine. But, when I copy from AD and paste to SublimeText, it doesn't work.. 

Share this post


Link to post
Share on other sites

Yes I can paste into TextEdit and Pages. But those programs also support formatting of the text, they are not plain text editors.

 

I just tested with Brackets too, which is also a text editor like Sublime Text, and it doesn't work in Brackets either. Both SublimeText and Brackets are plain text editors. It seems like the copied text carries some formatting information with it which can not be pasted into these plain text editors. 

Share this post


Link to post
Share on other sites

I'm a new AD user and just hit the same issue. I can confirm that if I copy text from AD, paste into TextEdit, then copy the TextEdit text just pasted, I can then paste into SublimeText just fine. I can also copy paste perfectly well from AD directly into BBEdit (plain text editor). 

 

I suggest this is a SublimeText issue, not AD. 

Share this post


Link to post
Share on other sites

Hmm, already tested this with AD v1.6 and Sublime Text v3 under OSX El Capitan and it works here. Probably no need to say, that of cause the text in AD has to be marked/selected first before copying over via the clipboard. - It also works here for other editors (emacs, vi etc.), even when used inside a terminal/shell.


☛ Affinity Designer 1.7.1 ◆ Affinity Photo 1.7.1 ◆ OSX El Capitan

Share this post


Link to post
Share on other sites

I am also experiencing this bug for a couple of years now so I've decided to inspect this issue using some clipboard tools.

I may be wrong here, but it seems the clipboard contents when copied from Affinity are missing the title attribute. This was using the text tool with some highlighted text.

 

5acc1e3d1c65e_ScreenShot2018-04-9at23_08_34.thumb.png.5b3307e92f5fc9b1a2b4895942264a45.png

Share this post


Link to post
Share on other sites

This is still happening. I tried to copy/paste text into sublime text / visual studio code / atom, and none of them pasted the text. Only worked on TextEdit I don't know why.

I am using a Mac.

Share this post


Link to post
Share on other sites

This is happening to me on Windows 10 also. I can copy text to Affinity Designer but can't copy from it. I don't think its an issue with sublime at all. I tried to copy it anywhere, it won't copy. 

Share this post


Link to post
Share on other sites
52 minutes ago, usce said:

This is happening to me on Windows 10 also. I can copy text to Affinity Designer but can't copy from it. I don't think its an issue with sublime at all. I tried to copy it anywhere, it won't copy. 

Did you select (highlight) the text characters in the Artistic or Frame text block first? Just selecting the text block without entering text entry mode & selecting some of the text in it probably won't work because it is just copying the Artistic or Frame text block itself, which no other apps besides the Affinity ones can use.


Affinity Photo 1.7.2, Affinity Designer 1.7.2, Affinity Publisher 1.7.2; macOS High Sierra 10.13.6 iMac (27-inch, Late 2012); 2.9GHz i5 CPU; NVIDIA GeForce GTX 660M; 8GB RAM
Affinity Photo 1.7.2.153 & Affinity Designer 1.7.2.6 for iPad; 6th Generation iPad 32 GB; Apple Pencil; iOS 12.3.1

Share this post


Link to post
Share on other sites

I’ve recorded a screencast to hopefully make the issue more clear.

In short, Affinity Designer seems to copy text as rich text only. TextEdit can paste it, but Sublime expects the plain text part which is missing from the clipboard. It works if copy in AD, paste in TextEdit, copy in TextEdit and then paste in Sublime Text.

Share this post


Link to post
Share on other sites
17 minutes ago, R C-R said:

Did you select (highlight) the text characters in the Artistic or Frame text block first? Just selecting the text block without entering text entry mode & selecting some of the text in it probably won't work because it is just copying the Artistic or Frame text block itself, which no other apps besides the Affinity ones can use.

Ok, so what do you suggest? I just selected the text, double clicked to enter "edit" mode and then highlighted text, then tried copy/paste but not working.

Share this post


Link to post
Share on other sites
1 hour ago, hbeier said:

In short, Affinity Designer seems to copy text as rich text only. TextEdit can paste it, but Sublime expects the plain text part which is missing from the clipboard.

From what I can tell, at least in the current macOS High Sierra retail version, even TextEdit copies text as rich text only if TextEdit is set to use the rich text format, so I have no idea why pasting to TexEdit first & then from there into Sublime (which I do not use) works. :S


Affinity Photo 1.7.2, Affinity Designer 1.7.2, Affinity Publisher 1.7.2; macOS High Sierra 10.13.6 iMac (27-inch, Late 2012); 2.9GHz i5 CPU; NVIDIA GeForce GTX 660M; 8GB RAM
Affinity Photo 1.7.2.153 & Affinity Designer 1.7.2.6 for iPad; 6th Generation iPad 32 GB; Apple Pencil; iOS 12.3.1

Share this post


Link to post
Share on other sites
6 minutes ago, R C-R said:

even TextEdit copies text as rich text only if TextEdit is set to use the rich text format

I don‘t think that‘s true. You may test this yourself:

1. Copy some text from Affinity Designer and paste in TextEdit using ⌥⇧⌘V (Paste and Match Style). Nothing will be pasted. This is essentially pasting as plain text.

2. Now paste in TextEdit using ⌘V (the normal Paste). The text will be pasted as rich text.

3. Then, copy the text in TextEdit and paste it back (in TextEdit) using both ⌘V and ⌥⇧⌘V. You will notice they both work fine, as TextEdit sets the clipboard correctly with plain text and rich text versions.

 

Inspecting the clipboard contents from different apps a while back also indicated that Affinity Designer is not copying things correctly. See that the 4th line is missing the title attribute:

On 4/9/2018 at 11:16 PM, hbeier said:

I am also experiencing this bug for a couple of years now so I've decided to inspect this issue using some clipboard tools.

I may be wrong here, but it seems the clipboard contents when copied from Affinity are missing the title attribute. This was using the text tool with some highlighted text.

 

5acc1e3d1c65e_ScreenShot2018-04-9at23_08_34.thumb.png.5b3307e92f5fc9b1a2b4895942264a45.png

 

Share this post


Link to post
Share on other sites
15 minutes ago, hbeier said:

3. Then, copy the text in TextEdit and paste it back (in TextEdit) using both ⌘V and ⌥⇧⌘V. You will notice they both work fine, as TextEdit sets the clipboard correctly with plain text and rich text versions.

That is not happening here. No matter how I copy the text back into a TextEdit file set to use the rich text format, the only thing copied to the clipboard from it is the rich text version. Likewise, if the TextEdit file is set to use the plain text format, the only thing copied to the clipboard is plain text.


Affinity Photo 1.7.2, Affinity Designer 1.7.2, Affinity Publisher 1.7.2; macOS High Sierra 10.13.6 iMac (27-inch, Late 2012); 2.9GHz i5 CPU; NVIDIA GeForce GTX 660M; 8GB RAM
Affinity Photo 1.7.2.153 & Affinity Designer 1.7.2.6 for iPad; 6th Generation iPad 32 GB; Apple Pencil; iOS 12.3.1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×