| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -15,7 +15,6 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						} from '$lib/stores/store';
 | 
					 | 
					 | 
					 | 
						} from '$lib/stores/store';
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						/** @type {HTMLDivElement} */ let editor;
 | 
					 | 
					 | 
					 | 
						/** @type {HTMLDivElement} */ let editor;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						let fileinput;
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						const handleSubmit = async () => {
 | 
					 | 
					 | 
					 | 
						const handleSubmit = async () => {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							console.log('submit');
 | 
					 | 
					 | 
					 | 
							console.log('submit');
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -27,6 +26,7 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								return;
 | 
					 | 
					 | 
					 | 
								return;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							}
 | 
					 | 
					 | 
					 | 
							}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							if (editor && editor.firstChild !== null) {
 | 
					 | 
					 | 
					 | 
							if (editor && editor.firstChild !== null) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
								// @ts-ignore
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								$content = editor.firstChild.innerHTML;
 | 
					 | 
					 | 
					 | 
								$content = editor.firstChild.innerHTML;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							}
 | 
					 | 
					 | 
					 | 
							}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						};
 | 
					 | 
					 | 
					 | 
						};
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -34,7 +34,7 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						const downloadCanvas = async () => {
 | 
					 | 
					 | 
					 | 
						const downloadCanvas = async () => {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							if ($canvas !== undefined) {
 | 
					 | 
					 | 
					 | 
							if ($canvas !== undefined) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								const res = await html2canvas($canvas, { backgroundColor: '#fffffff' });
 | 
					 | 
					 | 
					 | 
								const res = await html2canvas($canvas, { backgroundColor: '#fffffff' });
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								const image = await res.toDataURL('image/png');
 | 
					 | 
					 | 
					 | 
								const image = res.toDataURL('image/png');
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								const link = document.createElement('a');
 | 
					 | 
					 | 
					 | 
								const link = document.createElement('a');
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								link.download = 'cartel.png';
 | 
					 | 
					 | 
					 | 
								link.download = 'cartel.png';
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								link.href = image;
 | 
					 | 
					 | 
					 | 
								link.href = image;
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |