Grammalecte  Check-in [f9a8be8ff0]

Overview
Comment:[fx] WebExt: use innerText instead of textContent for editable nodes
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fx | webext3
Files: files | file ages | folders
SHA3-256: f9a8be8ff0f5da027cc026656da9aea44e79b76ee241315dbe97e4f0576acafe
User & Date: olr on 2017-10-15 19:08:28
Other Links: branch diff | manifest | tags
Context
2017-10-16
19:33
[fx] WebExt: message box + text formatter via context menu check-in: e7fc1e12a3 user: olr tags: fx, webext3
2017-10-15
19:08
[fx] WebExt: use innerText instead of textContent for editable nodes check-in: f9a8be8ff0 user: olr tags: fx, webext3
2017-10-14
11:45
[fx] WebExt: context menu: slected text commands first check-in: 4c9fdcb9ba user: olr tags: fx, webext3
Changes

Modified gc_lang/fr/webext/content_scripts/init.js from [88b511454d] to [976d90ad7a].

188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
            Commands received from the context menu
            (Context menu are initialized in background)
        */
        // Grammar checker commands
        case "rightClickGCEditableNode":
            if (oGrammalecte.xRightClickedNode !== null) {
                oGrammalecte.startGCPanel(oGrammalecte.xRightClickedNode);
                sText = (oGrammalecte.xRightClickedNode.tagName == "TEXTAREA") ? oGrammalecte.xRightClickedNode.value : oGrammalecte.xRightClickedNode.textContent;
                xGrammalectePort.postMessage({
                    sCommand: "parseAndSpellcheck",
                    dParam: {sText: sText, sCountry: "FR", bDebug: false, bContext: false},
                    dInfo: {sTextAreaId: oGrammalecte.xRightClickedNode.id}
                });
            } else {
                oGrammalecte.startGCPanel();







|







188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
            Commands received from the context menu
            (Context menu are initialized in background)
        */
        // Grammar checker commands
        case "rightClickGCEditableNode":
            if (oGrammalecte.xRightClickedNode !== null) {
                oGrammalecte.startGCPanel(oGrammalecte.xRightClickedNode);
                sText = (oGrammalecte.xRightClickedNode.tagName == "TEXTAREA") ? oGrammalecte.xRightClickedNode.value : oGrammalecte.xRightClickedNode.innerText;
                xGrammalectePort.postMessage({
                    sCommand: "parseAndSpellcheck",
                    dParam: {sText: sText, sCountry: "FR", bDebug: false, bContext: false},
                    dInfo: {sTextAreaId: oGrammalecte.xRightClickedNode.id}
                });
            } else {
                oGrammalecte.startGCPanel();