diff --git a/src/bundle/Resources/public/js/alloyeditor/src/widgets/ez-embed-base.js b/src/bundle/Resources/public/js/alloyeditor/src/widgets/ez-embed-base.js index a10d1ebb80..c7d70e20ff 100644 --- a/src/bundle/Resources/public/js/alloyeditor/src/widgets/ez-embed-base.js +++ b/src/bundle/Resources/public/js/alloyeditor/src/widgets/ez-embed-base.js @@ -101,7 +101,21 @@ const embedBaseDefinition = { * @method initEditMode */ initEditMode: function() { - const contentId = this.getHref().replace('ezcontent://', ''); + const href = this.getHref(); + const hasEzLocation = href.includes('ezlocation://'); + const contentId = href.replace('ezcontent://', ''); + + if (hasEzLocation) { + const ezLocationError = Translator.trans( + /*@Desc("This embedded item relies on 'ezlocation' imported from Legacy. It isn't supported by Online Editor yet.")*/ 'embed.ezlocation.error', + {}, + 'alloy_editor' + ); + + this.renderEmbedPreview(ezLocationError); + + return; + } if (!contentId) { return; diff --git a/src/bundle/Resources/translations/alloy_editor.en.xliff b/src/bundle/Resources/translations/alloy_editor.en.xliff index 805261ee93..89b87a8ddc 100644 --- a/src/bundle/Resources/translations/alloy_editor.en.xliff +++ b/src/bundle/Resources/translations/alloy_editor.en.xliff @@ -66,6 +66,11 @@ Save key: custom_tag_update_btn.save_btn.label + + This embedded item relies on 'ezlocation' imported from Legacy. It isn't supported by Online Editor yet. + This embedded item relies on 'ezlocation' imported from Legacy. It isn't supported by Online Editor yet. + key: embed.ezlocation.error + Center Center