<Clipboard copy with formatting in Kotlin/JS> I am...
# forum
r
Clipboard copy with formatting in Kotlin/JS I am working on a Kotlin multiplatform project. I want to support copy action with formatting. There are a plenty of page in the web implementing it in javascript. All of them are almost same and do it like this: const content = "SOMETHING!" const clipboardItem = new ClipboardItem({ 'text/html': new Blob([content],{type: 'text/html'}), 'text/plain': new Blob([content],{type: 'text/plain'}) }); navigator.clipboard.write([clipboardItem]) But I...