Javascript clipboard API item.getType(“text/html”) return null
I am trying to get the HTML content of the clipboard when user copies text from Calibre E-book Viewer. The clipboard does have the item type of "text/html"
, but item.getType("text/html")
returns null
. How can I resolve the problem?