changes.mady.by.user Robert Reiner
Saved on 16. Oct 2020
...
We want to remove the create button that creates a new blank page.
The split button in the Confluence menu:
The shortcut 'c' clicks the left button, creating a new blank document.
c
We would like to make it easier for users to create a new page based on a template.
Therefore we remove the left button and replace the label of the right.
When the user hits the shortcut 'c'. the page wizard selection dialog opens.
The script implements the your solution:.
"use strict"; AJS.toInit(function () { const $quickCreateButton = AJS.$('#quick-create-page-button'); if ($quickCreateButton.length) { $quickCreateButton.hide(); const $createButton = AJS.$('#create-page-button'); if ($createButton.length) { $createButton.text("Create ..."); $(document).on('keydown', null, 'c', function () { $createButton.click(); }); } } });
The way to production:.
authors
Packed up and ready to go ...