odoo links deleted

This commit is contained in:
Воробьев Данил Сергеевич 2024-05-28 17:35:11 +03:00
parent 4f27a23395
commit 1a10966256
3 changed files with 5 additions and 5 deletions

View File

@ -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");

View File

@ -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(', '));

View File

@ -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, {