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:
parent
00d028e646
commit
273ebad151
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user