fix: keep a note's pasted images when the note is rebuilt from HTML (#31513)

This commit is contained in:
G30 2026-09-30 11:47:05 -04:00 • committed by GitHub
parent 909a2075d3
commit e276d33352
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -106,6 +106,9 @@ export const Image = Node.create<ImageOptions>({
return [
{
tag: this.options.allowBase64 ? 'img[src]' : 'img[src]:not([src^="data:"])'
},
{
tag: 'img[src^="data://"]'
}
];
},