Overview
Comment: | Auto add fix if they are not button defined before |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | comunicate |
Files: | files | file ages | folders |
SHA3-256: |
13ca4224a834ef800513b81c03564523 |
User & Date: | IllusionPerdu on 2018-11-07 23:57:43 |
Other Links: | branch diff | manifest | tags |
Context
2018-11-08
| ||
10:34 | Add comment, Add bidirectional communication check-in: 717fe4b51a user: IllusionPerdu tags: comunicate | |
2018-11-07
| ||
23:57 | Auto add fix if they are not button defined before check-in: 13ca4224a8 user: IllusionPerdu tags: comunicate | |
22:52 | Auto Add button in tinymce zone check-in: 5bc013ac26 user: IllusionPerdu tags: comunicate | |
Changes
Modified gc_lang/fr/webext/content_scripts/event.js from [e6245afd69] to [e52d83dc97].
︙ | ︙ | |||
37 38 39 40 41 42 43 | let bIsAdded = false; if ( tinymce.majorVersion >= 4 ){ let aBtn = ["toolbar3", "toolbar2", "toolbar1", "toolbar"]; let nBtn = aBtn.length; let iBtn = 0; for (let eBtn of aBtn){ | | > | > > > | > | > > > | 37 38 39 40 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 67 68 69 70 71 72 | let bIsAdded = false; if ( tinymce.majorVersion >= 4 ){ let aBtn = ["toolbar3", "toolbar2", "toolbar1", "toolbar"]; let nBtn = aBtn.length; let iBtn = 0; for (let eBtn of aBtn){ if (!bIsAdded && (typeof xEditorAdd.settings[eBtn] !== "undefined" || iBtn == nBtn)) { bIsAdded = true; if (typeof xEditorAdd.settings[eBtn] !== "undefined") { xEditorAdd.settings[eBtn] = (xEditorAdd.settings[eBtn] + " Grammalecte").trim(); } else { xEditorAdd.settings[eBtn] = "Grammalecte"; } } iBtn++; } } else if ( tinymce.majorVersion >= 3 ){ let aBtn = ["theme_advanced_buttons3", "theme_advanced_buttons2", "theme_advanced_buttons1"]; let nBtn = aBtn.length; let iBtn = 0; for (let eBtn of aBtn){ if (!bIsAdded && (typeof xEditorAdd.settings[eBtn] !== "undefined" || iBtn == nBtn)) { bIsAdded = true; if (typeof xEditorAdd.settings[eBtn] !== "undefined") { xEditorAdd.settings[eBtn] = (xEditorAdd.settings[eBtn] + ",Grammalecte").trim(); } else { xEditorAdd.settings[eBtn] = "Grammalecte"; } } iBtn++; } } xEditorAdd.addButton("Grammalecte", { text: "", |
︙ | ︙ |