Details
-
Bug
-
Resolution: Fixed
-
Minor
-
1.32
-
None
-
None
-
Unknown
-
Description
I’ve added some toolbar buttons for the code-macro with specific programming languages preselected. Example Button:
config['xwiki-macro'] = config['xwiki-macro'] || {}; config['xwiki-macro'].insertButtons = [ { commandId: 'xwiki-macro-insert-code-sql', macroCall: { name: 'code', parameters: { language: "sql" } } } ];
To reproduce:
- Add a custom button like mine above to your toolbar
- Edit a page and select some text
- Click on the custom added button
--> The selected text doesn't get prefilled into the code-macro popup window (like it would when you would use the standard "Xwiki macro" button -> "code".
[Link to Forum-Post I made about it|https://forum.xwiki.org/t/adding-editor-toolbar-button-select-marked-text-for-macro/4819].