[AUTOMATED] Insert Code macro with a different source [Since XWiki 14.10.2]

Last modified by Ilie Andriuta on 2024/06/27 16:29

Home CKEditor Home Run Test

Steps to reproduce

  1. Create a page with a velocity script, having a name, like:
    #set($myvar = "some content to highlight")
  2. Edit the page in CKEditor mode
  3. Click on 'Insert' Button (the "+" icon)
  4. Click on 'Other Macros'
  5. Search for 'Code' and click 'Select'
  6. On the 'Source' box, insert the name of the previously created velocity script, e.g. "script:myvar"
  7. Click 'Submit'

or just use in Wiki/Source mode:

{{velocity}}
#set($myvar = "some content to highlight")
{{/velocity}}

{{code source="script:myvar"}}{{/code}}

8. Click 'Save & View'

Expected results

The content of the macro is displayed properly.

Automation Status

Automated

Results

per page of Page
Jira Issue
Warning
The environment prevents the table from loading data.
 
Page

Get Connected