Grammalecte  Check-in [a1ae783d64]

Overview
Comment:[fx] WebExt: useless node id
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fx | webext3
Files: files | file ages | folders
SHA3-256: a1ae783d64f74e3700f8e26595af1f6c9d7ad038629041190f33686c7fd04dab
User & Date: olr on 2017-10-12 10:19:14
Other Links: branch diff | manifest | tags
Context
2017-10-12
10:48
[fx] WebExt: use innerText instead of textContent to retrieve page text check-in: 45611cc1b5 user: olr tags: fx, webext3
10:19
[fx] WebExt: useless node id check-in: a1ae783d64 user: olr tags: fx, webext3
10:01
[fx] WebExt: exclude panels content from GC and lexicographer analysis check-in: 96618e5b78 user: olr tags: fx, webext3
Changes

Modified gc_lang/fr/webext/content_scripts/init.js from [be5aff6344] to [631786cf1c].

193
194
195
196
197
198
199
200

201
202
203
204
205
206
207
193
194
195
196
197
198
199

200
201
202
203
204
205
206
207







-
+







            });
            break;
        case "rightClickGCPage":
            oGrammalecte.startGCPanel();
            xGrammalectePort.postMessage({
                sCommand: "parseAndSpellcheck",
                dParam: {sText: oGrammalecte.getPageText(), sCountry: "FR", bDebug: false, bContext: false},
                dInfo: {sTextAreaId: xRightClickedNode.id}
                dInfo: {}
            });
            break;
        case "rightClickGCSelectedText":
            oGrammalecte.startGCPanel();
            // selected text is sent to the GC worker in the background script.
            break;
        // Lexicographer commands
215
216
217
218
219
220
221
222

223
224
225
226
227
228
229
215
216
217
218
219
220
221

222
223
224
225
226
227
228
229







-
+







            });
            break;
        case "rightClickLxgPage":
            oGrammalecte.startLxgPanel();
            xGrammalectePort.postMessage({
                sCommand: "getListOfTokens",
                dParam: {sText: oGrammalecte.getPageText()},
                dInfo: {sTextAreaId: xRightClickedNode.id}
                dInfo: {}
            });
            break;
        case "rightClickLxgSelectedText":
            oGrammalecte.startLxgPanel();
            // selected text is sent to the GC worker in the background script.
            break;
        // rescan page command