0

copying from a rich text editor, for example wordPad puts the text in the clipboard as Rich Text Format (159).

How can that be then pasted to a contentEditable div with the rich text formatting.

In a 'paste' handler, it seems that in this case e.clipboardData.getData('text/html') returns an empty string and e.clipboardData.getData('text/rtf') is not supported properly - I get an empty string in Chrome and the RTF markup in firefox, both are not helpful.

Can this be done ?

kofifus
  • 14,411
  • 12
  • 82
  • 140

0 Answers0