summaryrefslogtreecommitdiffstats
path: root/plugins/55/color/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/55/color/script.js')
-rw-r--r--plugins/55/color/script.js91
1 files changed, 91 insertions, 0 deletions
diff --git a/plugins/55/color/script.js b/plugins/55/color/script.js
new file mode 100644
index 0000000..6f9388a
--- /dev/null
+++ b/plugins/55/color/script.js
@@ -0,0 +1,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>"
+ }]
+ };
+} \ No newline at end of file