There are 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-2e0a8561-e09f-4800-87b4-e274f95b9449 XWIKI-23733 Open

Gallery macro should support reference refactoring

 
View issue   ยท   Add comment
 

2 comments

 
cid:jira-generated-image-avatar-2f3d8731-29fd-4b31-8ed5-67226f93ffb1 Vincent Massol on 19/Nov/25 10:46
 

Actually, the gallery macro supports wiki syntax so we just need to mark it as such (thanks Michael Hamann for the suggestion).

 
cid:jira-generated-image-avatar-2f3d8731-29fd-4b31-8ed5-67226f93ffb1 Vincent Massol on 19/Nov/25 10:51
 

To do it we should probably change the constructor to:

    public GalleryMacro()
    {
        super("Gallery", DESCRIPTION, new DefaultContentDescriptor(CONTENT_DESCRIPTION, true, Block.LIST_BLOCK_TYPE),
            GalleryMacroParameters.class);
        setDefaultCategories(Set.of(DEFAULT_CATEGORY_LAYOUT));
    }

But we need to check the consequences on the wysywig editor.