fix: paste-html fallback to text
This commit is contained in:
		
							parent
							
								
									befc1a12fd
								
							
						
					
					
						commit
						3ca488e170
					
				| @ -96,9 +96,9 @@ function onPasteInputHtml(evt: ClipboardEvent) { | |||||||
|   if (!target) { |   if (!target) { | ||||||
|     return false; |     return false; | ||||||
|   } |   } | ||||||
|   evt.preventDefault(); |  | ||||||
|   const textHtmlData = evt.clipboardData?.getData('text/html'); |   const textHtmlData = evt.clipboardData?.getData('text/html'); | ||||||
|   if (textHtmlData && textHtmlData !== '') { |   if (textHtmlData && textHtmlData !== '') { | ||||||
|  |     evt.preventDefault(); | ||||||
|     value.value = textHtmlData; |     value.value = textHtmlData; | ||||||
|     return true; |     return true; | ||||||
|   } |   } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user