Grammalecte  Diff

Differences From Artifact [79f4d2add2]:

To Artifact [ccdc2aeb0d]:


41
42
43
44
45
46
47
48
49


50
51
52
53
54
55

56
57
58
59


60
61
62
63
64
65
66
41
42
43
44
45
46
47


48
49
50
51
52
53
54

55
56
57


58
59
60
61
62
63
64
65
66







-
-
+
+





-
+


-
-
+
+







        oElem.appendChild(img);
    });
}
*/

const oGrammalecte = {

    nWrapper: 0,
    lWrapper: [],
    nMenu: 0,
    lMenu: [],

    oTFPanel: null,
    oLxgPanel: null,
    oGCPanel: null,

    wrapTextareas: function () {
    createMenus: function () {
        let lNode = document.getElementsByTagName("textarea");
        for (let xNode of lNode) {
            this.lWrapper.push(new GrammalecteWrapper(this.nWrapper, xNode));
            this.nWrapper += 1;
            this.lMenu.push(new GrammalecteMenu(this.nMenu, xNode));
            this.nMenu += 1;
        }
    },

    createTFPanel: function () {
        if (this.oTFPanel === null) {
            this.oTFPanel = new GrammalecteTextFormatter("grammalecte_tf_panel", "Formateur de texte", 800, 620, false);
            //this.oTFPanel.logInnerHTML();
130
131
132
133
134
135
136
137

130
131
132
133
134
135
136

137







-
+
    }
});


/*
    Start
*/
oGrammalecte.wrapTextareas();
oGrammalecte.createMenus();