Set the clipboard in a "copy" or a "cut" event. The default of the event is prevented: the browser would copy its own selection instead.
this.addDOMEvent( "copy", ev => { setEventClipboard( ev, { text: this.getSelectedText( ) } );} ); Copy
this.addDOMEvent( "copy", ev => { setEventClipboard( ev, { text: this.getSelectedText( ) } );} );
Set the clipboard in a "copy" or a "cut" event. The default of the event is prevented: the browser would copy its own selection instead.