mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Fix copy-to-clipboard action in FireFox
This commit is contained in:
		@@ -89,9 +89,12 @@ RED.clipboard = (function() {
 | 
			
		||||
                        text: RED._("clipboard.export.copy"),
 | 
			
		||||
                        click: function() {
 | 
			
		||||
                            if (activeTab === "red-ui-clipboard-dialog-export-tab-clipboard") {
 | 
			
		||||
                                copyText($("#red-ui-clipboard-dialog-export-text").val());
 | 
			
		||||
                                RED.notify(RED._("clipboard.nodesExported"),{id:"clipboard"});
 | 
			
		||||
                                var flowData = $("#red-ui-clipboard-dialog-export-text").val();
 | 
			
		||||
                                // Close the dialog first otherwise FireFox won't focus the hidden
 | 
			
		||||
                                // clipboard element in copyText
 | 
			
		||||
                                $( this ).dialog( "close" );
 | 
			
		||||
                                copyText(flowData);
 | 
			
		||||
                                RED.notify(RED._("clipboard.nodesExported"),{id:"clipboard"});
 | 
			
		||||
                            } else {
 | 
			
		||||
                                var flowToExport = $("#red-ui-clipboard-dialog-export-text").val();
 | 
			
		||||
                                var selectedPath = activeLibraries[activeTab].getSelected();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user