The order of the fields of the macro depending on the method of calling the macro

  1. Traditional calling from Macro List:
    image

Field “Content” at the first, it’s ok:
image

  1. Calling by custom button:
    (added by this lines:
    config[‘xwiki-macro’] = config[‘xwiki-macro’] || {};
    config[‘xwiki-macro’].insertButtons = [‘сode’, ‘info’, ‘success’, ‘warning’, ‘error’]:wink:

Field “Content” at the end, it’s not ok:
image

Whats wrong? Workarounds, tricks?

Thanks.