diff --git a/addons/web_editor/static/src/js/editor/snippets.options.js b/addons/web_editor/static/src/js/editor/snippets.options.js
index 2b85576b389..5c0fd87038b 100644
--- a/addons/web_editor/static/src/js/editor/snippets.options.js
+++ b/addons/web_editor/static/src/js/editor/snippets.options.js
@@ -4497,27 +4497,10 @@ const ImageHandlerOption = SnippetOptionWidget.extend({
* @override
*/
async _renderCustomXML(uiFragment) {
- const isLocalURL = href => new URL(href, window.location.origin).origin === window.location.origin;
-
const img = this._getImg();
if (!this.originalSrc || !['image/png', 'image/jpeg'].includes(img.dataset.mimetype)) {
- return [...uiFragment.childNodes].forEach(node => {
- if (node.matches('.o_we_external_warning')) {
- node.classList.remove('d-none');
- if (isLocalURL(img.getAttribute('src'))) {
- const title = node.querySelector('we-title');
- title.textContent = ` ${_t("Quality options unavailable")}`;
- $(title).prepend('');
- if (img.dataset.mimetype) {
- title.setAttribute('title', _t("Only PNG and JPEG images support quality options and image filtering"));
- } else {
- title.setAttribute('title', _t("Due to technical limitations, you can only change optimization settings on this image by choosing it again in the media-dialog or reuploading it (double click on the image)"));
- }
- }
- } else {
- node.remove();
- }
- });
+ [...uiFragment.childNodes].forEach(node => node.remove());
+ return;
}
const $select = $(uiFragment).find('we-select[data-name=width_select_opt]');
(await this._computeAvailableWidths()).forEach(([value, label]) => {
diff --git a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss
index 30d87684590..c78cdfbf059 100644
--- a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss
+++ b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss
@@ -1526,10 +1526,6 @@ body.editor_enable.editor_has_snippets {
margin-left: $o-we-sidebar-content-field-label-spacing * 2;
}
- .o_we_external_warning {
- margin-top: $o-we-sidebar-content-field-spacing;
- }
-
.o_we_tag {
background-color: $o-we-bg-darkest;
white-space: nowrap;
diff --git a/addons/web_editor/views/snippets.xml b/addons/web_editor/views/snippets.xml
index 39a6447ce0c..a0f1b0c5cf0 100644
--- a/addons/web_editor/views/snippets.xml
+++ b/addons/web_editor/views/snippets.xml
@@ -48,12 +48,6 @@
-
-
- External Image
-
-
-
Filter
None