mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-17 15:53:59 -06:00
fix: keep a note's pasted images when the note is rebuilt from HTML (#31513)
This commit is contained in:
@@ -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://"]'
|
||||
}
|
||||
];
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user