Pasting HTML text doesn't work in Firefox

  • Thread starter Thread starter nagar
  • Start date Start date
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
 
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.
 
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.
 
Back
Top