Pasting limitations


https://www.nevron.com/Forum/Topic11901.aspx
Print Topic | Close Window

By NeilTurp - 8 Years Ago
I'm building an app with a ribbon bar and I want to be able to paste images into the documents.  I have a Nov Text Editor in a Xamarin window on OSX El Cap.  If I copy text from e.g a Pages document the Paste icon on the ribbon activates and I can paste in no problem.  If I select an image - and I've tried images in Pages files, and graphics files: png, jpg, etc, the Paste icon stays disabled.  I can't see what I'm doing wrong.  I've not changed anything on the ribbon so I guess it is using the internal PasteCommand - I've not touched that, and it works with text.  Any help appreciated.

Neil
By Nevron Support - 8 Years Ago
Hi Neil,
The problem is that the control accepts RTF as clipboard format - so if you select an image + text it should be able to paste properly. Most likely Pages just copies a single image into the clipboard and our control cannot paste it directly. We'll extend the functionality of the control to allow for single image pasting.
By NeilTurp - 8 Years Ago
Thanks, that certainly sounds like the explanation.  I'll see if I can work with that for now, till the update comes.

Neil
By NeilTurp - 8 Years Ago
As a follow up, I tried to copy formatted textwith and without an image from a web page and what I found is this: pasting in formatted text seems to lose formatting, while pasting in any image simply does not work.Is this something else that requires you to extend the functionality?
Neil
By Nevron Support - 8 Years Ago
Hi Neil,
We tested with Safari and it did not loose formatting - what is the browser / OS X version you tested with? Also we've implemented image pasting for png and bitmap images so if the application publishes a single image in the clipboard future versions of the control will be able to pick it up.
By NeilTurp - 8 Years Ago
I'm using Safari on El Capitan, and images still don't appear.  I'm using assembly version 16.8.17.12.  Is that the latest?