268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
|
copyTextToClipboard () {
this.startWaitIcon();
try {
let xClipboardButton = this.xParent.getElementById("grammalecte_clipboard_button");
xClipboardButton.textContent = "->>";
let sText = "";
for (let xNode of this.xParent.getElementsByClassName("grammalecte_paragraph")) {
sText += xNode.textContent + "\n";
}
this._copyToClipboard(sText);
xClipboardButton.textContent = "OK";
window.setTimeout(function() { xClipboardButton.textContent = "∑"; } , 2000);
}
catch (e) {
|
>
>
|
|
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
|
copyTextToClipboard () {
this.startWaitIcon();
try {
let xClipboardButton = this.xParent.getElementById("grammalecte_clipboard_button");
xClipboardButton.textContent = "->>";
let sText = "";
// Quand c'est dans un shadow "this.xParent.getElementsByClassName" n'existe pas.
let xElem = this.xParent.getElementById("grammalecte_gc_panel");
for (let xNode of xElem.getElementsByClassName("grammalecte_paragraph")) {
sText += xNode.textContent + "\n";
}
this._copyToClipboard(sText);
xClipboardButton.textContent = "OK";
window.setTimeout(function() { xClipboardButton.textContent = "∑"; } , 2000);
}
catch (e) {
|