From 9c12f29f88fa4fba6d4a72fe90f198111a7f4539 Mon Sep 17 00:00:00 2001 From: Mikhail Shashin Date: Tue, 7 May 2024 00:10:36 +0300 Subject: [PATCH] Add Yandex Map embeded component --- shared/editor/embeds/index.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/shared/editor/embeds/index.tsx b/shared/editor/embeds/index.tsx index cf4ab427972f..7c85c8e70a09 100644 --- a/shared/editor/embeds/index.tsx +++ b/shared/editor/embeds/index.tsx @@ -284,6 +284,14 @@ const embeds: EmbedDescriptor[] = [ icon: Google Maps, visible: true, }), + new EmbedDescriptor({ + title: "Yandex Maps", + keywords: "maps", + regexMatch: [new RegExp("^https?://yandex\.ru/map-widget/v1/\?.+$")], + transformMatch: (matches: RegExpMatchArray) => matches[0], + icon: Yandex Maps, + visible: true, + }), new EmbedDescriptor({ title: "Google Drawings", keywords: "drawings",