Pasting HTML text doesn't work in Firefox


N

nagar

I need to copy a piece of HTML to the clipboard. I'm doing this

DataObject clipData = new DataObject();
clipData.SetData(DataFormats.Html, true, html);
Clipboard.SetDataObject(clipData, false);

If I paste, it works fine in any HTML edit box in Internet Explorer
and Chrome but it doesn't work in Firefox. Should I use another
format? What's the problem with it?
Thanks.
Andrea
 
Ad

Advertisements

X

xcal

I would ask Firefox's support, it seems Firefox doesn't accept
DataFormats.Html. The alternative is to try your code on another
machine, perhaps you have a problem with Firefox.

hope this helps, Carlos.
 
Ad

Advertisements

N

nagar

Thanks, the same problem happens also in Eudora.

I would ask Firefox's support, it seems Firefox doesn't accept
DataFormats.Html. The alternative is to try your code on another
machine, perhaps you have a problem with Firefox.

hope this helps, Carlos.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top