angular-froala-wysiwyg icon indicating copy to clipboard operation
angular-froala-wysiwyg copied to clipboard

Duplicate SVG when using imageUploadURL

Open Semptra opened this issue 2 years ago • 1 comments

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:

  1. The SVG that was uploaded to the server.
  2. The SVG inserted as <image> tag with its content being encoded into base64.

image

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) => {
                // ...
            }
        }
    };

Semptra avatar Feb 21 '22 15:02 Semptra

Any updates on this one?

Semptra avatar Sep 30 '22 08:09 Semptra