Add support for text buttons

pull/461/head
Jonathan 2 years ago committed by GitHub
parent c311bfa6b0
commit 38717daffe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -236,7 +236,11 @@ function createToolbarButton(options, enableActions, enableTooltips, shortcuts,
el.setAttribute('type', markup);
enableTooltips = (enableTooltips == undefined) ? true : enableTooltips;
// Properly hande custom shortcuts
if (options.text) {
el.innerText = options.text;
}
// Properly handle custom shortcuts
if (options.name && options.name in shortcuts) {
bindings[options.name] = options.action;
}

Loading…
Cancel
Save