Grammalecte  Check-in [442f6eaf7e]

Overview
Comment:[fx] remove console.log()
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: 442f6eaf7e225ec5fce3598a7d0dbb9d2bb835943a25ea7479d879ca18eeb9e8
User & Date: olr on 2020-03-09 18:56:17
Other Links: manifest | tags
Context
2020-03-09
19:17
[fx] send result in event also if Grammalecte is launched by the context menu check-in: 98cbcc00d8 user: olr tags: trunk, fx
18:56
[fx] remove console.log() check-in: 442f6eaf7e user: olr tags: trunk, fx
18:54
[fx] call Grammalecte via custom button and send results by event on node check-in: 360a78ac9f user: olr tags: trunk, fx
Changes

Modified gc_lang/fr/webext/content_scripts/panel_gc.js from [327f3b8b3c] to [f4ff64b873].

1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
    write () {
        if (this.xNode !== null) {
            if (this.bResultInEvent) {
                const xEvent = new CustomEvent("GrammalecteNodeContentUpdated", {
                    detail: { text: [...this.dParagraph.values()].join("\n").normalize("NFC") }
                });
                this.xNode.dispatchEvent(xEvent);
                console.log("event", xEvent.detail.text);
            }
            else if (this.bTextArea) {
                this.xNode.value = this.getText();
            }
            else {
                this.eraseNodeContent();
                this.dParagraph.forEach((val, key) => {







|







1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
    write () {
        if (this.xNode !== null) {
            if (this.bResultInEvent) {
                const xEvent = new CustomEvent("GrammalecteNodeContentUpdated", {
                    detail: { text: [...this.dParagraph.values()].join("\n").normalize("NFC") }
                });
                this.xNode.dispatchEvent(xEvent);
                //console.log("event", xEvent.detail.text);
            }
            else if (this.bTextArea) {
                this.xNode.value = this.getText();
            }
            else {
                this.eraseNodeContent();
                this.dParagraph.forEach((val, key) => {