diff --git a/static/src/components/media_dialog/document_selector.js b/static/src/components/media_dialog/document_selector.js index 71d87e2..aa88aac 100644 --- a/static/src/components/media_dialog/document_selector.js +++ b/static/src/components/media_dialog/document_selector.js @@ -11,7 +11,7 @@ export class DocumentSelector extends FileSelector { super.setup(); this.uploadText = _t("Upload a document"); - this.urlPlaceholder = "https://www.odoo.com/mydocument"; + this.urlPlaceholder = "#"; this.addText = _t("Add URL"); this.searchPlaceholder = _t("Search a document"); this.allLoadedText = _t("All documents have been loaded"); diff --git a/static/src/components/media_dialog/image_selector.js b/static/src/components/media_dialog/image_selector.js index c4ef5d0..eb0fc72 100644 --- a/static/src/components/media_dialog/image_selector.js +++ b/static/src/components/media_dialog/image_selector.js @@ -62,7 +62,7 @@ export class ImageSelector extends FileSelector { this.NUMBER_OF_MEDIA_TO_DISPLAY = 10; this.uploadText = _t("Upload an image"); - this.urlPlaceholder = "https://www.odoo.com/logo.png"; + this.urlPlaceholder = "#"; this.addText = _t("Add URL"); this.searchPlaceholder = _t("Search an image"); this.urlWarningTitle = _t("Uploaded image's format is not supported. Try with: " + IMAGE_EXTENSIONS.join(', ')); diff --git a/static/src/js/editor/odoo-editor/test/spec/copyPaste.test.js b/static/src/js/editor/odoo-editor/test/spec/copyPaste.test.js index 29699c7..3a2a5c7 100644 --- a/static/src/js/editor/odoo-editor/test/spec/copyPaste.test.js +++ b/static/src/js/editor/odoo-editor/test/spec/copyPaste.test.js @@ -1733,7 +1733,7 @@ describe('Paste', () => { }); }); it('should paste and transform URL among text', async () => { - const url = 'https://www.odoo.com'; + const url = '#'; const imgUrl = 'https://download.odoocdn.com/icons/website/static/description/icon.png'; const videoUrl = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'; await testEditor(BasicEditor, { @@ -1765,7 +1765,7 @@ describe('Paste', () => { }); }); it('should paste and transform multiple URLs', async () => { - const url = 'https://www.odoo.com'; + const url = '#'; const imgUrl = 'https://download.odoocdn.com/icons/website/static/description/icon.png'; const videoUrl = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'; await testEditor(BasicEditor, { @@ -1862,7 +1862,7 @@ describe('Paste', () => { }); }); it('should paste and transform URLs among text or multiple URLs', async () => { - const url = 'https://www.odoo.com'; + const url = '#'; const imgUrl = 'https://download.odoocdn.com/icons/website/static/description/icon.png'; const videoUrl = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'; await testEditor(BasicEditor, {