mirror of https://github.com/zulip/zulip.git
42d30bc14b
Clicking on the copy-to-clipboard button triggers the clipboard.js API to dynamically set the text to be copied. This text is the actual code content from the sibling <code> element (extracted though jQuery text() method). The html structure would now look like: <div class="codehilite"> <pre> <button> The copy button </button> <span></span> <code>......</code> </pre> </div> Additionally, this preserves the original code formatting of the codeblock during copy-paste. Tests amended. Fixes: #15208 |
||
---|---|---|
.. | ||
casper_lib | ||
casper_tests | ||
node_tests | ||
puppeteer_lib | ||
puppeteer_tests | ||
zjsunit | ||
run-casper |