[Libreoffice-bugs] [Bug 115255] [NEWHELP] Enable copy to clipboard of some text in help pages
https://bugs.documentfoundation.org/show_bug.cgi?id=115255 Buovjagachanged: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 115255] [NEWHELP] Enable copy to clipboard of some text in help pages
https://bugs.documentfoundation.org/show_bug.cgi?id=115255 --- Comment #2 from Commit Notification--- Ilmari Lauhakangas committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/help/commit/?id=b6bc8c1cfecc55bebff8dc64fddb63e3edc109b5 tdf#115255 and auto-expand contents per subitem -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 115255] [NEWHELP] Enable copy to clipboard of some text in help pages
https://bugs.documentfoundation.org/show_bug.cgi?id=115255 Commit Notificationchanged: What|Removed |Added Whiteboard||target:6.1.0 -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 115255] [NEWHELP] Enable copy to clipboard of some text in help pages
https://bugs.documentfoundation.org/show_bug.cgi?id=115255 Buovjagachanged: What|Removed |Added CC||todven...@suomi24.fi --- Comment #1 from Buovjaga --- The simplest solution would be to do it without a button. We could have a CSS tooltip say "Click on the text to copy it to your clipboard". We could also include a text at the beginning of such articles "the texts looking like this can be copied to the clipboard by clicking on them". JS to target a class (not an ID because we want to be able to have multiple copyable elements in a single article): > var copyable = document.getElementsByClassName("copyable"); > > for (var i = 0, len = copyable.length; i < len; i++) { > (function() { > var item = copyable[i]; > > item.onclick = function() { > document.execCommand("copy"); > } > > item.addEventListener("copy", function(event) { > event.preventDefault(); > if (event.clipboardData) { > event.clipboardData.setData("text/plain", item.textContent); > } > }); > }()); > } Not tested, but should work. Let me know what you think and we can develop it further. -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 115255] [NEWHELP] Enable copy to clipboard of some text in help pages
https://bugs.documentfoundation.org/show_bug.cgi?id=115255 Olivier Hallotchanged: What|Removed |Added Blocks||97629 Referenced Bugs: https://bugs.documentfoundation.org/show_bug.cgi?id=97629 [Bug 97629] [META] Help Content Modernization -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs