Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
copyCiteToSelection() {
// Copies: "Selected quotation" name_abbreviation, official_citation, ()
// TODO: add pin cite to citation
const toCopy = `"${this.selectedText}" ${this.templateVars.fullCite}`;
clipboard.writeText(toCopy).then(
() => this.copyStatus = "copied",
() => this.copyStatus = "copy failed",
);
},
elideOrRedactSelection(kind) {