0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-18 10:52:19 +01:00

Changing to btnTitle and btnEdit

This commit is contained in:
louismaxime.piton 2022-04-01 10:01:51 +02:00 committed by GeoSot
parent 00d028e646
commit 273ebad151

View File

@ -119,6 +119,7 @@
// Insert copy to clipboard button before .highlight
var btnTitle = 'Copy to clipboard'
var btnEdit = 'Edit on StackBlitz'
var btnHtml = '<div class="bd-clipboard"><button type="button" class="btn-clipboard">Copy</button></div>'
document.querySelectorAll('div.highlight')
.forEach(function (element) {
@ -143,8 +144,8 @@
})
}
snippetButtonTooltip('.btn-clipboard', 'Copy to clipboard')
snippetButtonTooltip('.btn-edit', 'Edit on StackBlitz')
snippetButtonTooltip('.btn-clipboard', btnTitle)
snippetButtonTooltip('.btn-edit', btnEdit)
var clipboard = new ClipboardJS('.btn-clipboard', {
target: function (trigger) {