Details
-
Bug
-
Resolution: Fixed
-
Major
-
1.64.2
-
None
-
None
-
Unknown
-
Description
Use this advanced editor configuration in the Wiki administration:
// Declare a new toolbar item for the Floating box Table of Contents.
config.toolbarMenuItems.floatingBoxToc = {
command: 'xwiki-macro-insert',
label: 'Floating Table of Contents',
data: {
name: 'box',
content: '{{toc/}}',
parameters: {cssClass : "floatinginfobox", title : "Table of Contents"}
}
};
// Modify the insert configuration to remove the code macro and to replace the default table of contents macro with the one in a floating box.
config.toolbarMenus.insert.groups[1] = {id: 'macros', items: ['infoBox', 'successBox', 'warningBox', 'errorBox', 'floatingBoxToc', 'include']};
The label on the toolbar appears as "{label}" instead of "Floating Table of Contents"