angular-froala-wysiwyg
angular-froala-wysiwyg copied to clipboard
Duplicate SVG when using imageUploadURL
Hello, I'm using the angular-froala-wysiwyg
package version 3.2.7
. There is an issue with SVG file upload when the imageUploadURL
is specified - two SVG files are being inserted into the editor:
- The SVG that was uploaded to the server.
- The SVG inserted as
<image>
tag with its content being encoded into base64.
I only need the first one (the one that is uploaded to the server), but can't find a way to disable it.
Froala options:
public editorOptions: Object = {
// ...
imageUploadURL: `my-custom-url`,
imageMaxSize: 5 * 1024 * 1024,
imageAllowedTypes: ['jpeg', 'jpg', 'png', 'gif', 'webp', 'svg+xml'],
imageManagerLoadURL: 'my-custom-url',
imageManagerLoadMethod: 'GET',
imageUploadRemoteUrls: true,
events: {
initialized: (e: any) => {
// ...
}
}
};
Any updates on this one?