Changes for page Embed content Macro

Last modified by Danut Groza on 2026/02/03 20:00

From version 4.1
edited by Danut Groza
on 2026/02/03 20:00
Change comment: Imported from XAR
To version 1.1
edited by Danut Groza
on 2025/07/30 06:56
Change comment: Install extension [org.xwiki.contrib.embed:embed-macro-ui/1.1.3]

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -130,10 +130,6 @@
130 130   #set ($macro.url = $macro.urlParam.replaceAll('^.*?//.*?/(.*?)([#?].*|$)', '//player.vimeo.com/video/$1'))
131 131   #showIframe($macro.url '' 400 300)
132 132  
133 - #elseif ($macro.urlParam.contains('media.flexbiz.ro') || $macro.urlParam.contains('/embed?m='))
134 - #set ($macro.url = $macro.urlParam)
135 - #showIframe($macro.url '' 560 315)
136 -
137 137   #elseif ($macro.urlParam.contains('://x.com') || $macro.urlParam.contains('twitter.com'))
138 138   ## For x.com we just use the API to get the HTML code to include in the page.
139 139   #set($requestParams = $escapetool.url({"url": $macro.urlParam}))