3 ms·
Rich Text Format is the default representation for formatted text on the Windows clipboard. Any application that can paste rich text should accept it. When yo
by ectopod 5y ago
Rich Text Format is the default representation for formatted text on the Windows clipboard. Any application that can paste rich text should accept it. When you paste directly into a content-editable the browser should convert the rtf into html.
Most modern apps will also copy an html fragment to the clipboard so the browser could use that directly.
According to stackoverflow, when you read from the clipboard in javascript the browser gives you access to its synthesised html version of the rtf content via ClipboardItem.getType. That's what you would expect, but I haven't tried it.