zulip/frontend_tests
Sumanth V Rao 42d30bc14b markdown: Add copy-to-clipboard button in codeblocks.
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
2020-08-26 23:18:05 -07:00
..
casper_lib js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
casper_tests puppeteer: Migrate custom profile test from casper. 2020-08-13 16:24:15 -07:00
node_tests markdown: Add copy-to-clipboard button in codeblocks. 2020-08-26 23:18:05 -07:00
puppeteer_lib puppeteer: Migrate mention test from casper. 2020-08-11 10:43:29 -07:00
puppeteer_tests puppeteer: Fix test flake in admin tests. 2020-08-21 07:41:28 -04:00
zjsunit docs: Capitalize Markdown consistently. 2020-08-11 10:23:06 -07:00
run-casper python: Sort imports with isort. 2020-06-11 16:45:32 -07:00