Changes for page Embed content Macro
Last modified by Danut Groza on 2026/02/03 20:00
From version 1.1
edited by Danut Groza
on 2025/07/30 06:56
on 2025/07/30 06:56
Change comment:
Install extension [org.xwiki.contrib.embed:embed-macro-ui/1.1.3]
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -130,6 +130,10 @@ 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 + 133 133 #elseif ($macro.urlParam.contains('://x.com') || $macro.urlParam.contains('twitter.com')) 134 134 ## For x.com we just use the API to get the HTML code to include in the page. 135 135 #set($requestParams = $escapetool.url({"url": $macro.urlParam}))