Copy/paste in contextmenu

Tags: #<Tag:0x00007f452feea180>

Hi,
I try to realize a CP-functionality. This works:

 contextMenu: {
                items: {
                    "copy": {
                        name: function () {
                            return '📋 Cell content into clipboard';
                        },
                        callback: function (key, selection, clickEvent) {
                            const value = this.getDataAtCell(selection[0].start.row, selection[0].start.col);
                            navigator.clipboard.writeText(value)
                        }
                    },

But navigator.clipboard.readText() is not available in firefox.

Hi @Knoeterich

It returns an error on Chrome http://jsfiddle.net/n5yutswd/2/ (I might be, however, missing something in the configuration).

Maybe, I have only tested on firefox, because we only use this browser. The pasting works with Ctrl V