Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Support for HTML on the clipboard?
-
I’m trying to place custom HTML on the Pasteboard, for use as a signature in the Mail app among other things.
(The signature uses a CSS background image with Retina 2x versions and other tricks which are lost if I just select and copy it out of another app’s UIWebView.)
It appears that the built-in clipboard support in Pythonista is limited to text and images. Is there a way to extend this to the HTML data type using Python? If not, this is a feature request. :-)
I think this explains what I’m trying to do:
http://stackoverflow.com/questions/6566152/ios-how-to-copy-html-into-the-cut-paste-buffer
-
Currently not possible, sorry. I have some plans to extend the clipboard module with custom data types though, so perhaps it will be in the future...
-
I’d still love to get Web Archive support for the Pasteboard in Pythonista…
Thomas, off topic – could you explain how you use the app HTML Mail Editor? I tried it, and while it can insert custom HTML into the body of an email, I don’t see how to use it to copy HMTL to the Pasteboard as a Web Archive object. As far as I can see, all explicit copy/paste operations in the app use text/RTF objects. That’s OK for simple formatting but will destroy any sort of tricky inline CSS, which is the problem I’m trying to get around in the first place.