diff --git a/web_src/js/features/clipboard.js b/web_src/js/features/clipboard.js index bcbdae270..224628658 100644 --- a/web_src/js/features/clipboard.js +++ b/web_src/js/features/clipboard.js @@ -4,19 +4,25 @@ import {clippie} from 'clippie'; const {copy_success, copy_error} = window.config.i18n; -// For all DOM elements with [data-clipboard-target] or [data-clipboard-text], -// this copy-to-clipboard will work for them +// Enable clipboard copy from HTML attributes. These properties are supported: +// - data-clipboard-text: Direct text to copy, has highest precedence +// - data-clipboard-target: Holds a selector for a or