Grammalecte  Check-in [dc0a47993e]

Overview
Comment:[fx] text area button: don’t show it for editable node that aren’t <p> or <div>
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: dc0a47993e96075afff4dcbbd17f471774b06f47529ee6da16b146ad5e9804c2
User & Date: olr on 2020-04-08 13:50:39
Other Links: manifest | tags
Context
2020-04-08
20:12
[fx] button: node examination update check-in: f16babf55d user: olr tags: trunk, fx
14:07
merge trunk check-in: 5c14b1c9e0 user: olr tags: gcerw
13:50
[fx] text area button: don’t show it for editable node that aren’t <p> or <div> check-in: dc0a47993e user: olr tags: trunk, fx
12:39
[graphspell] suggestions: phonetic and number improvements [fr] version 1.9.0 check-in: 0441dd2bd3 user: olr tags: trunk, fr, graphspell
Changes

Modified gc_lang/fr/webext/content_scripts/menu.js from [f330b67949] to [1c8166f9c8].

40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
    examineNode (xNode) {
        if (xNode && xNode instanceof HTMLElement) {
            if (xNode === this.xTextNode) {
                this.move();
                return;
            }
            if ( ( (xNode.tagName == "TEXTAREA" && this._bTextArea && xNode.getAttribute("spellcheck") !== "false")
                    || (xNode.isContentEditable && this._bEditableNode)
                    || (xNode.tagName == "IFRAME" && this._bIframe) )
                    && xNode.style.display !== "none" && xNode.style.visibility !== "hidden"
                    && !(xNode.dataset.grammalecte_button  &&  xNode.dataset.grammalecte_button == "false") ) {
                this.xTextNode = xNode;
                this.show()
            }
            else {







|







40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
    examineNode (xNode) {
        if (xNode && xNode instanceof HTMLElement) {
            if (xNode === this.xTextNode) {
                this.move();
                return;
            }
            if ( ( (xNode.tagName == "TEXTAREA" && this._bTextArea && xNode.getAttribute("spellcheck") !== "false")
                    || ( (xNode.tagName == "P" || xNode.tagName == "DIV") && xNode.isContentEditable && this._bEditableNode )
                    || (xNode.tagName == "IFRAME" && this._bIframe) )
                    && xNode.style.display !== "none" && xNode.style.visibility !== "hidden"
                    && !(xNode.dataset.grammalecte_button  &&  xNode.dataset.grammalecte_button == "false") ) {
                this.xTextNode = xNode;
                this.show()
            }
            else {