Grammalecte  Check-in [a3b0c51a85]

Overview
Comment:[fx] gc editor: don’t modify node content if no modification
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: a3b0c51a85d05fa8e481718a6227269cd636a1671a4d8cf8f1e96a72840bd9bd
User & Date: olr on 2020-12-18 16:58:14
Other Links: manifest | tags
Context
2020-12-19
15:43
[fr] ajustements check-in: a47da0f218 user: olr tags: trunk, fr
2020-12-18
16:58
[fx] gc editor: don’t modify node content if no modification check-in: a3b0c51a85 user: olr tags: trunk, fx
10:31
[lo] text formatter editor: small ui update check-in: d7ab6f010f user: olr tags: trunk, lo
Changes

Modified gc_lang/fr/webext/content_scripts/editor.js from [4d28a215de] to [17e5612fca].

185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
                if (this.xResultNode) {
                    this.xResultNode.dispatchEvent(xEvent);
                } else {
                    this.xWhat.dispatchEvent(xEvent);
                }
                //console.log("[Grammalecte debug] Text sent to xWhat via event:", xEvent.detail);
            }
            else if (iParagraph < this.lNode.length) {
                this.lNode[iParagraph].textContent = oGrammalecteTextEditor.getParagraph(iParagraph);
            }
        }
        catch (e) {
            showError(e);
        }
    }







|







185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
                if (this.xResultNode) {
                    this.xResultNode.dispatchEvent(xEvent);
                } else {
                    this.xWhat.dispatchEvent(xEvent);
                }
                //console.log("[Grammalecte debug] Text sent to xWhat via event:", xEvent.detail);
            }
            else if (iParagraph < this.lNode.length  &&  this.lNode[iParagraph].textContent != oGrammalecteTextEditor.getParagraph(iParagraph)) {
                this.lNode[iParagraph].textContent = oGrammalecteTextEditor.getParagraph(iParagraph);
            }
        }
        catch (e) {
            showError(e);
        }
    }