Grammalecte  Diff

Differences From Artifact [46a6cc1ac7]:

To Artifact [04fddfc5c0]:


268
269
270
271
272
273
274


275

276
277
278
279
280
281
282
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 this.xParent.getElementsByClassName("grammalecte_paragraph")) {
            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) {