zulip/static
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
..
assets js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
audio
generated
html logo: Update Zulip logo. 2020-07-16 01:37:08 -07:00
images integrations: Re-add Canarytoken integration. 2020-07-20 15:34:40 -07:00
js markdown: Add copy-to-clipboard button in codeblocks. 2020-08-26 23:18:05 -07:00
shared shared: Bump version to 0.0.3. 2020-08-26 22:34:06 -07:00
styles ui: Add loading indicator for message edits. 2020-08-25 17:22:29 -07:00
templates markdown: Add copy-to-clipboard button in codeblocks. 2020-08-26 23:18:05 -07:00
third typeahead: Fix binding of event handler to blur event. 2020-07-27 17:52:19 -07:00
.gitignore team: Generate team page data using cron job. 2020-04-08 12:52:31 -07:00