mirror of
https://github.com/redmine/redmine.git
synced 2025-11-16 02:06:04 +01:00
Patch by Mizuki ISHIKAWA (user:ishikawa999). git-svn-id: https://svn.redmine.org/redmine/trunk@23775 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -679,7 +679,7 @@ function copyDataClipboardTextToClipboard(target) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setupCopyButtonsToPreElements() {
|
function setupCopyButtonsToPreElements() {
|
||||||
document.querySelectorAll('pre:not(.pre-wrapper pre)').forEach((pre) => {
|
document.querySelectorAll('.wiki pre:not(.pre-wrapper pre)').forEach((pre) => {
|
||||||
// Wrap the <pre> element with a container and add a copy button
|
// Wrap the <pre> element with a container and add a copy button
|
||||||
const wrapper = document.createElement("div");
|
const wrapper = document.createElement("div");
|
||||||
wrapper.classList.add("pre-wrapper");
|
wrapper.classList.add("pre-wrapper");
|
||||||
|
|||||||
Reference in New Issue
Block a user