File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
packages/frontend/src/composables Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 22
33## Upcoming
44* Fix date field empty value not saved as null
5+ * Markdown editor: fix pasted images not inserted correctly in some cases
56
67
78## v2025.69 - 2025-08-13
Original file line number Diff line number Diff line change @@ -361,9 +361,10 @@ export function useMarkdownEditorBase(options: {
361361
362362 const types = event . clipboardData ?. types || [ ] ;
363363 if ( types . includes ( 'text/html' ) && (
364- ! types . includes ( 'text/plain' ) || // HTML only
365- types . indexOf ( 'text/html' ) < types . indexOf ( 'text/plain' ) || // Microsoft Excel, Word
366- types . includes ( 'text/rtf' ) // LibreOffice
364+ types . length === 1 || // HTML only
365+ ( types . indexOf ( 'text/html' ) === 0 && ! types . includes ( 'Files' ) ) || // HTML content
366+ ( types . indexOf ( 'text/html' ) < types . indexOf ( 'text/plain' ) && types . length === 2 ) || // Microsoft Excel, Word
367+ types . includes ( 'text/rtf' ) // LibreOffice
367368 ) ) {
368369 event . stopPropagation ( ) ;
369370 event . preventDefault ( ) ;
You can’t perform that action at this time.
0 commit comments