mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 11:56:01 +01:00 
			
		
		
		
	fix inclusion of the image into the correct position in ENEX import, closes #3468
This commit is contained in:
		@@ -28,7 +28,8 @@ function sanitize(dirtyHtml) {
 | 
				
			|||||||
            'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol',
 | 
					            'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol',
 | 
				
			||||||
            'li', 'b', 'i', 'strong', 'em', 'strike', 's', 'del', 'abbr', 'code', 'hr', 'br', 'div',
 | 
					            'li', 'b', 'i', 'strong', 'em', 'strike', 's', 'del', 'abbr', 'code', 'hr', 'br', 'div',
 | 
				
			||||||
            'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre', 'section', 'img',
 | 
					            'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre', 'section', 'img',
 | 
				
			||||||
            'figure', 'figcaption', 'span', 'label', 'input'
 | 
					            'figure', 'figcaption', 'span', 'label', 'input',
 | 
				
			||||||
 | 
					            'en-media' // for ENEX import
 | 
				
			||||||
        ],
 | 
					        ],
 | 
				
			||||||
        allowedAttributes: {
 | 
					        allowedAttributes: {
 | 
				
			||||||
            'a': [ 'href', 'class', 'data-note-path' ],
 | 
					            'a': [ 'href', 'class', 'data-note-path' ],
 | 
				
			||||||
@@ -41,6 +42,7 @@ function sanitize(dirtyHtml) {
 | 
				
			|||||||
            'code': [ 'class' ],
 | 
					            'code': [ 'class' ],
 | 
				
			||||||
            'ul': [ 'class' ],
 | 
					            'ul': [ 'class' ],
 | 
				
			||||||
            'table': [ 'class' ],
 | 
					            'table': [ 'class' ],
 | 
				
			||||||
 | 
					            'en-media': [ 'hash' ]
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        allowedSchemes: ['http', 'https', 'ftp', 'mailto', 'data', 'evernote'],
 | 
					        allowedSchemes: ['http', 'https', 'ftp', 'mailto', 'data', 'evernote'],
 | 
				
			||||||
        transformTags,
 | 
					        transformTags,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user