summaryrefslogtreecommitdiffstats
path: root/plugins/55/color/script.js
blob: 6f9388a281c731e924aeb70c7fa96acbb1a7942a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/* JavaScript function to create color toolbar in Dokuwiki */
/* see http://www.dokuwiki.org/plugin:color for more info */

color_icobase = "../../plugins/color/images/";

if(window.toolbar != undefined) {
  toolbar[toolbar.length] = {
    "type":"picker",
    "title":"Color Text",
    "icon":color_icobase+"toolbar_icon.png",
    "list":[{
      "type":"format",
      "title":"Gray Colored Text",
      "icon":color_icobase+"picker_light_gray.png",
      "open":"<color #c3c3c3>",
      "close":"</color>"
    }, {
      "type":"format",
      "title":"Rose Highlighted Text",
      "icon":color_icobase+"picker_rose.png",
      "open":"<color #ffaec9>",
      "close":"</color>"
    }, {
      "type":"format",
      "title":"Red Highlighted Text",
      "icon":color_icobase+"picker_red.png",
      "open":"<color #ed1c24>",
      "close":"</color>"
    }, {
      "type":"format",
      "title":"Orange Highlighted Text",
      "icon":color_icobase+"picker_orange.png",
      "open":"<color #ff7f27>",
      "close":"</color>"
    }, {
      "type":"format",
      "title":"Gold Highlighted Text",
      "icon":color_icobase+"picker_gold.png",
      "open":"<color #ffc90e>",
      "close":"</color>"
    }, {
      "type":"format",
      "title":"Yellow Highlighted Text",
      "icon":color_icobase+"picker_yellow.png",
      "open":"<color #fff200>",
      "close":"</color>"
    }, {
      "type":"format",
      "title":"Light Yellow Highlighted Text",
      "icon":color_icobase+"picker_light_yellow.png",
      "open":"<color #efe4B0>",
      "close":"</color>"
    }, {
      "type":"format",
      "title":"Green Highlighted Text",
      "icon":color_icobase+"picker_green.png",
      "open":"<color #22b14c>",
      "close":"</color>"
    }, {
      "type":"format",
      "title":"Lime Highlighted Text",
      "icon":color_icobase+"picker_lime.png",
      "open":"<color #b5e61d>",
      "close":"</color>"
    }, {
      "type":"format",
      "title":"Turquoise Highlighted Text",
      "icon":color_icobase+"picker_turquoise.png",
      "open":"<color #00a2e8>",
      "close":"</color>"
    }, {
      "type":"format",
      "title":"Light Turquoise Highlighted Text",
      "icon":color_icobase+"picker_light_turquoise.png",
      "open":"<color #99d9ea>",
      "close":"</color>"
    }, {
      "type":"format",
      "title":"Blue-Gray Highlighted Text",
      "icon":color_icobase+"picker_blue_gray.png",
      "open":"<color #7092be>",
      "close":"</color>"
    }, {
      "type":"format",
      "title":"Lavender Highlighted Text",
      "icon":color_icobase+"picker_lavender.png",
      "open":"<color #c8bfe7>",
      "close":"</color>"
    }]
  };
}