Nevron Forum

Pasting limitations

https://www.nevron.com/Forum/Topic11901.aspx

By Neil Turp 1 - Monday, October 17, 2016

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 - Tuesday, October 18, 2016

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 Neil Turp 1 - Tuesday, October 18, 2016

Thanks, that certainly sounds like the explanation.  I'll see if I can work with that for now, till the update comes.

Neil
By Neil Turp 1 - Thursday, October 20, 2016

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 - Monday, October 24, 2016

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 Neil Turp 1 - Tuesday, October 25, 2016

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?