mirador_rails 0.3.3 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -0
  3. data/app/controllers/mirador_rails/locales_controller.rb +10 -0
  4. data/config/routes.rb +7 -0
  5. data/lib/mirador_rails/exceptions.rb +6 -0
  6. data/lib/mirador_rails/locale.rb +24 -0
  7. data/lib/mirador_rails/version.rb +1 -1
  8. data/lib/mirador_rails.rb +9 -2
  9. data/mirador_rails.gemspec +3 -0
  10. data/tasks/mirador_rails.rake +44 -10
  11. data/vendor/assets/images/border_type_4.png +0 -0
  12. data/vendor/assets/images/border_type_5.png +0 -0
  13. data/vendor/assets/javascripts/mirador/mirador.js.erb +20105 -0
  14. data/vendor/assets/javascripts/mirador.js +4 -1
  15. data/vendor/assets/locales/de/translation.json +3 -0
  16. data/vendor/assets/locales/en/translation.json +11 -7
  17. data/vendor/assets/locales/ko/translation.json +18 -9
  18. data/vendor/assets/stylesheets/enhancements.scss +36 -0
  19. data/vendor/assets/stylesheets/mirador-combined.css +1488 -1642
  20. data/vendor/assets/stylesheets/mirador.css +1 -0
  21. metadata +52 -174
  22. data/vendor/assets/javascripts/mirador.min.js +0 -89
  23. data/vendor/assets/javascripts/mirador.min.js.map +0 -1
  24. data/vendor/assets/plugins/plugins/advlist/plugin.js +0 -97
  25. data/vendor/assets/plugins/plugins/advlist/plugin.min.js +0 -1
  26. data/vendor/assets/plugins/plugins/anchor/plugin.js +0 -45
  27. data/vendor/assets/plugins/plugins/anchor/plugin.min.js +0 -1
  28. data/vendor/assets/plugins/plugins/autolink/plugin.js +0 -194
  29. data/vendor/assets/plugins/plugins/autolink/plugin.min.js +0 -1
  30. data/vendor/assets/plugins/plugins/autoresize/plugin.js +0 -152
  31. data/vendor/assets/plugins/plugins/autoresize/plugin.min.js +0 -1
  32. data/vendor/assets/plugins/plugins/autosave/plugin.js +0 -165
  33. data/vendor/assets/plugins/plugins/autosave/plugin.min.js +0 -1
  34. data/vendor/assets/plugins/plugins/bbcode/plugin.js +0 -123
  35. data/vendor/assets/plugins/plugins/bbcode/plugin.min.js +0 -1
  36. data/vendor/assets/plugins/plugins/charmap/plugin.js +0 -370
  37. data/vendor/assets/plugins/plugins/charmap/plugin.min.js +0 -1
  38. data/vendor/assets/plugins/plugins/code/plugin.js +0 -60
  39. data/vendor/assets/plugins/plugins/code/plugin.min.js +0 -1
  40. data/vendor/assets/plugins/plugins/colorpicker/plugin.js +0 -112
  41. data/vendor/assets/plugins/plugins/colorpicker/plugin.min.js +0 -1
  42. data/vendor/assets/plugins/plugins/compat3x/css/dialog.css +0 -118
  43. data/vendor/assets/plugins/plugins/compat3x/img/buttons.png +0 -0
  44. data/vendor/assets/plugins/plugins/compat3x/img/icons.gif +0 -0
  45. data/vendor/assets/plugins/plugins/compat3x/img/items.gif +0 -0
  46. data/vendor/assets/plugins/plugins/compat3x/img/menu_arrow.gif +0 -0
  47. data/vendor/assets/plugins/plugins/compat3x/img/menu_check.gif +0 -0
  48. data/vendor/assets/plugins/plugins/compat3x/img/progress.gif +0 -0
  49. data/vendor/assets/plugins/plugins/compat3x/img/tabs.gif +0 -0
  50. data/vendor/assets/plugins/plugins/compat3x/plugin.js +0 -297
  51. data/vendor/assets/plugins/plugins/compat3x/plugin.min.js +0 -1
  52. data/vendor/assets/plugins/plugins/compat3x/tiny_mce_popup.js +0 -542
  53. data/vendor/assets/plugins/plugins/compat3x/utils/editable_selects.js +0 -70
  54. data/vendor/assets/plugins/plugins/compat3x/utils/form_utils.js +0 -210
  55. data/vendor/assets/plugins/plugins/compat3x/utils/mctabs.js +0 -164
  56. data/vendor/assets/plugins/plugins/compat3x/utils/validate.js +0 -252
  57. data/vendor/assets/plugins/plugins/contextmenu/plugin.js +0 -87
  58. data/vendor/assets/plugins/plugins/contextmenu/plugin.min.js +0 -1
  59. data/vendor/assets/plugins/plugins/directionality/plugin.js +0 -64
  60. data/vendor/assets/plugins/plugins/directionality/plugin.min.js +0 -1
  61. data/vendor/assets/plugins/plugins/emoticons/img/smiley-cool.gif +0 -0
  62. data/vendor/assets/plugins/plugins/emoticons/img/smiley-cry.gif +0 -0
  63. data/vendor/assets/plugins/plugins/emoticons/img/smiley-embarassed.gif +0 -0
  64. data/vendor/assets/plugins/plugins/emoticons/img/smiley-foot-in-mouth.gif +0 -0
  65. data/vendor/assets/plugins/plugins/emoticons/img/smiley-frown.gif +0 -0
  66. data/vendor/assets/plugins/plugins/emoticons/img/smiley-innocent.gif +0 -0
  67. data/vendor/assets/plugins/plugins/emoticons/img/smiley-kiss.gif +0 -0
  68. data/vendor/assets/plugins/plugins/emoticons/img/smiley-laughing.gif +0 -0
  69. data/vendor/assets/plugins/plugins/emoticons/img/smiley-money-mouth.gif +0 -0
  70. data/vendor/assets/plugins/plugins/emoticons/img/smiley-sealed.gif +0 -0
  71. data/vendor/assets/plugins/plugins/emoticons/img/smiley-smile.gif +0 -0
  72. data/vendor/assets/plugins/plugins/emoticons/img/smiley-surprised.gif +0 -0
  73. data/vendor/assets/plugins/plugins/emoticons/img/smiley-tongue-out.gif +0 -0
  74. data/vendor/assets/plugins/plugins/emoticons/img/smiley-undecided.gif +0 -0
  75. data/vendor/assets/plugins/plugins/emoticons/img/smiley-wink.gif +0 -0
  76. data/vendor/assets/plugins/plugins/emoticons/img/smiley-yell.gif +0 -0
  77. data/vendor/assets/plugins/plugins/emoticons/plugin.js +0 -65
  78. data/vendor/assets/plugins/plugins/emoticons/plugin.min.js +0 -1
  79. data/vendor/assets/plugins/plugins/example/dialog.html +0 -8
  80. data/vendor/assets/plugins/plugins/example/plugin.js +0 -68
  81. data/vendor/assets/plugins/plugins/example/plugin.min.js +0 -1
  82. data/vendor/assets/plugins/plugins/example_dependency/plugin.js +0 -22
  83. data/vendor/assets/plugins/plugins/example_dependency/plugin.min.js +0 -1
  84. data/vendor/assets/plugins/plugins/fullpage/plugin.js +0 -490
  85. data/vendor/assets/plugins/plugins/fullpage/plugin.min.js +0 -1
  86. data/vendor/assets/plugins/plugins/fullscreen/plugin.js +0 -136
  87. data/vendor/assets/plugins/plugins/fullscreen/plugin.min.js +0 -1
  88. data/vendor/assets/plugins/plugins/hr/plugin.js +0 -30
  89. data/vendor/assets/plugins/plugins/hr/plugin.min.js +0 -1
  90. data/vendor/assets/plugins/plugins/image/plugin.js +0 -439
  91. data/vendor/assets/plugins/plugins/image/plugin.min.js +0 -1
  92. data/vendor/assets/plugins/plugins/importcss/plugin.js +0 -195
  93. data/vendor/assets/plugins/plugins/importcss/plugin.min.js +0 -1
  94. data/vendor/assets/plugins/plugins/insertdatetime/plugin.js +0 -121
  95. data/vendor/assets/plugins/plugins/insertdatetime/plugin.min.js +0 -1
  96. data/vendor/assets/plugins/plugins/layer/plugin.js +0 -225
  97. data/vendor/assets/plugins/plugins/layer/plugin.min.js +0 -1
  98. data/vendor/assets/plugins/plugins/legacyoutput/plugin.js +0 -211
  99. data/vendor/assets/plugins/plugins/legacyoutput/plugin.min.js +0 -1
  100. data/vendor/assets/plugins/plugins/link/plugin.js +0 -400
  101. data/vendor/assets/plugins/plugins/link/plugin.min.js +0 -1
  102. data/vendor/assets/plugins/plugins/lists/plugin.js +0 -791
  103. data/vendor/assets/plugins/plugins/lists/plugin.min.js +0 -1
  104. data/vendor/assets/plugins/plugins/media/moxieplayer.swf +0 -0
  105. data/vendor/assets/plugins/plugins/media/plugin.js +0 -774
  106. data/vendor/assets/plugins/plugins/media/plugin.min.js +0 -1
  107. data/vendor/assets/plugins/plugins/nonbreaking/plugin.js +0 -53
  108. data/vendor/assets/plugins/plugins/nonbreaking/plugin.min.js +0 -1
  109. data/vendor/assets/plugins/plugins/noneditable/plugin.js +0 -540
  110. data/vendor/assets/plugins/plugins/noneditable/plugin.min.js +0 -1
  111. data/vendor/assets/plugins/plugins/pagebreak/plugin.js +0 -88
  112. data/vendor/assets/plugins/plugins/pagebreak/plugin.min.js +0 -1
  113. data/vendor/assets/plugins/plugins/paste/classes/Clipboard.js +0 -634
  114. data/vendor/assets/plugins/plugins/paste/classes/Plugin.js +0 -110
  115. data/vendor/assets/plugins/plugins/paste/classes/Quirks.js +0 -159
  116. data/vendor/assets/plugins/plugins/paste/classes/Utils.js +0 -130
  117. data/vendor/assets/plugins/plugins/paste/classes/WordFilter.js +0 -493
  118. data/vendor/assets/plugins/plugins/paste/plugin.dev.js +0 -120
  119. data/vendor/assets/plugins/plugins/paste/plugin.js +0 -1625
  120. data/vendor/assets/plugins/plugins/paste/plugin.min.js +0 -1
  121. data/vendor/assets/plugins/plugins/preview/plugin.js +0 -88
  122. data/vendor/assets/plugins/plugins/preview/plugin.min.js +0 -1
  123. data/vendor/assets/plugins/plugins/print/plugin.js +0 -32
  124. data/vendor/assets/plugins/plugins/print/plugin.min.js +0 -1
  125. data/vendor/assets/plugins/plugins/save/plugin.js +0 -94
  126. data/vendor/assets/plugins/plugins/save/plugin.min.js +0 -1
  127. data/vendor/assets/plugins/plugins/searchreplace/plugin.js +0 -594
  128. data/vendor/assets/plugins/plugins/searchreplace/plugin.min.js +0 -1
  129. data/vendor/assets/plugins/plugins/spellchecker/classes/DomTextMatcher.js +0 -470
  130. data/vendor/assets/plugins/plugins/spellchecker/classes/Plugin.js +0 -436
  131. data/vendor/assets/plugins/plugins/spellchecker/plugin.dev.js +0 -117
  132. data/vendor/assets/plugins/plugins/spellchecker/plugin.js +0 -996
  133. data/vendor/assets/plugins/plugins/spellchecker/plugin.min.js +0 -1
  134. data/vendor/assets/plugins/plugins/tabfocus/plugin.js +0 -120
  135. data/vendor/assets/plugins/plugins/tabfocus/plugin.min.js +0 -1
  136. data/vendor/assets/plugins/plugins/table/classes/CellSelection.js +0 -176
  137. data/vendor/assets/plugins/plugins/table/classes/Dialogs.js +0 -749
  138. data/vendor/assets/plugins/plugins/table/classes/Plugin.js +0 -422
  139. data/vendor/assets/plugins/plugins/table/classes/Quirks.js +0 -372
  140. data/vendor/assets/plugins/plugins/table/classes/TableGrid.js +0 -864
  141. data/vendor/assets/plugins/plugins/table/plugin.dev.js +0 -118
  142. data/vendor/assets/plugins/plugins/table/plugin.js +0 -2680
  143. data/vendor/assets/plugins/plugins/table/plugin.min.js +0 -1
  144. data/vendor/assets/plugins/plugins/template/plugin.js +0 -262
  145. data/vendor/assets/plugins/plugins/template/plugin.min.js +0 -1
  146. data/vendor/assets/plugins/plugins/textcolor/plugin.js +0 -272
  147. data/vendor/assets/plugins/plugins/textcolor/plugin.min.js +0 -1
  148. data/vendor/assets/plugins/plugins/textpattern/plugin.js +0 -268
  149. data/vendor/assets/plugins/plugins/textpattern/plugin.min.js +0 -1
  150. data/vendor/assets/plugins/plugins/visualblocks/css/visualblocks.css +0 -135
  151. data/vendor/assets/plugins/plugins/visualblocks/img/address.gif +0 -0
  152. data/vendor/assets/plugins/plugins/visualblocks/img/article.gif +0 -0
  153. data/vendor/assets/plugins/plugins/visualblocks/img/aside.gif +0 -0
  154. data/vendor/assets/plugins/plugins/visualblocks/img/blockquote.gif +0 -0
  155. data/vendor/assets/plugins/plugins/visualblocks/img/div.gif +0 -0
  156. data/vendor/assets/plugins/plugins/visualblocks/img/dl.gif +0 -0
  157. data/vendor/assets/plugins/plugins/visualblocks/img/figure.gif +0 -0
  158. data/vendor/assets/plugins/plugins/visualblocks/img/h1.gif +0 -0
  159. data/vendor/assets/plugins/plugins/visualblocks/img/h2.gif +0 -0
  160. data/vendor/assets/plugins/plugins/visualblocks/img/h3.gif +0 -0
  161. data/vendor/assets/plugins/plugins/visualblocks/img/h4.gif +0 -0
  162. data/vendor/assets/plugins/plugins/visualblocks/img/h5.gif +0 -0
  163. data/vendor/assets/plugins/plugins/visualblocks/img/h6.gif +0 -0
  164. data/vendor/assets/plugins/plugins/visualblocks/img/hgroup.gif +0 -0
  165. data/vendor/assets/plugins/plugins/visualblocks/img/ol.gif +0 -0
  166. data/vendor/assets/plugins/plugins/visualblocks/img/p.gif +0 -0
  167. data/vendor/assets/plugins/plugins/visualblocks/img/pre.gif +0 -0
  168. data/vendor/assets/plugins/plugins/visualblocks/img/section.gif +0 -0
  169. data/vendor/assets/plugins/plugins/visualblocks/img/ul.gif +0 -0
  170. data/vendor/assets/plugins/plugins/visualblocks/plugin.js +0 -86
  171. data/vendor/assets/plugins/plugins/visualblocks/plugin.min.js +0 -1
  172. data/vendor/assets/plugins/plugins/visualchars/plugin.js +0 -88
  173. data/vendor/assets/plugins/plugins/visualchars/plugin.min.js +0 -1
  174. data/vendor/assets/plugins/plugins/wordcount/plugin.js +0 -69
  175. data/vendor/assets/plugins/plugins/wordcount/plugin.min.js +0 -1
  176. data/vendor/assets/skins/skins/lightgray/content.inline.min.css +0 -1
  177. data/vendor/assets/skins/skins/lightgray/content.min.css +0 -1
  178. data/vendor/assets/skins/skins/lightgray/fonts/tinymce-small.eot +0 -0
  179. data/vendor/assets/skins/skins/lightgray/fonts/tinymce-small.svg +0 -62
  180. data/vendor/assets/skins/skins/lightgray/fonts/tinymce-small.ttf +0 -0
  181. data/vendor/assets/skins/skins/lightgray/fonts/tinymce-small.woff +0 -0
  182. data/vendor/assets/skins/skins/lightgray/fonts/tinymce.eot +0 -0
  183. data/vendor/assets/skins/skins/lightgray/fonts/tinymce.svg +0 -63
  184. data/vendor/assets/skins/skins/lightgray/fonts/tinymce.ttf +0 -0
  185. data/vendor/assets/skins/skins/lightgray/fonts/tinymce.woff +0 -0
  186. data/vendor/assets/skins/skins/lightgray/img/anchor.gif +0 -0
  187. data/vendor/assets/skins/skins/lightgray/img/loader.gif +0 -0
  188. data/vendor/assets/skins/skins/lightgray/img/object.gif +0 -0
  189. data/vendor/assets/skins/skins/lightgray/img/trans.gif +0 -0
  190. data/vendor/assets/skins/skins/lightgray/skin.ie7.min.css +0 -1
  191. data/vendor/assets/skins/skins/lightgray/skin.min.css +0 -1
  192. data/vendor/assets/themes/themes/modern/theme.js +0 -617
  193. data/vendor/assets/themes/themes/modern/theme.min.js +0 -1
@@ -1,112 +0,0 @@
1
- /**
2
- * plugin.js
3
- *
4
- * Copyright, Moxiecode Systems AB
5
- * Released under LGPL License.
6
- *
7
- * License: http://www.tinymce.com/license
8
- * Contributing: http://www.tinymce.com/contributing
9
- */
10
-
11
- /*global tinymce:true */
12
-
13
- tinymce.PluginManager.add('colorpicker', function(editor) {
14
- function colorPickerCallback(callback, value) {
15
- function setColor(value) {
16
- var color = new tinymce.util.Color(value), rgb = color.toRgb();
17
-
18
- win.fromJSON({
19
- r: rgb.r,
20
- g: rgb.g,
21
- b: rgb.b,
22
- hex: color.toHex().substr(1)
23
- });
24
-
25
- showPreview(color.toHex());
26
- }
27
-
28
- function showPreview(hexColor) {
29
- win.find('#preview')[0].getEl().style.background = hexColor;
30
- }
31
-
32
- var win = editor.windowManager.open({
33
- title: 'Color',
34
- items: {
35
- type: 'container',
36
- layout: 'flex',
37
- direction: 'row',
38
- align: 'stretch',
39
- padding: 5,
40
- spacing: 10,
41
- items: [
42
- {
43
- type: 'colorpicker',
44
- value: value,
45
- onchange: function() {
46
- var rgb = this.rgb();
47
-
48
- if (win) {
49
- win.find('#r').value(rgb.r);
50
- win.find('#g').value(rgb.g);
51
- win.find('#b').value(rgb.b);
52
- win.find('#hex').value(this.value().substr(1));
53
- showPreview(this.value());
54
- }
55
- }
56
- },
57
- {
58
- type: 'form',
59
- padding: 0,
60
- labelGap: 5,
61
- defaults: {
62
- type: 'textbox',
63
- size: 7,
64
- value: '0',
65
- flex: 1,
66
- spellcheck: false,
67
- onchange: function() {
68
- var colorPickerCtrl = win.find('colorpicker')[0];
69
- var name, value;
70
-
71
- name = this.name();
72
- value = this.value();
73
-
74
- if (name == "hex") {
75
- value = '#' + value;
76
- setColor(value);
77
- colorPickerCtrl.value(value);
78
- return;
79
- }
80
-
81
- value = {
82
- r: win.find('#r').value(),
83
- g: win.find('#g').value(),
84
- b: win.find('#b').value()
85
- };
86
-
87
- colorPickerCtrl.value(value);
88
- setColor(value);
89
- }
90
- },
91
- items: [
92
- {name: 'r', label: 'R', autofocus: 1},
93
- {name: 'g', label: 'G'},
94
- {name: 'b', label: 'B'},
95
- {name: 'hex', label: '#', value: '000000'},
96
- {name: 'preview', type: 'container', border: 1}
97
- ]
98
- }
99
- ]
100
- },
101
- onSubmit: function() {
102
- callback('#' + this.toJSON().hex);
103
- }
104
- });
105
-
106
- setColor(value);
107
- }
108
-
109
- if (!editor.settings.color_picker_callback) {
110
- editor.settings.color_picker_callback = colorPickerCallback;
111
- }
112
- });
@@ -1 +0,0 @@
1
- tinymce.PluginManager.add("colorpicker",function(a){function b(b,c){function d(a){var b=new tinymce.util.Color(a),c=b.toRgb();f.fromJSON({r:c.r,g:c.g,b:c.b,hex:b.toHex().substr(1)}),e(b.toHex())}function e(a){f.find("#preview")[0].getEl().style.background=a}var f=a.windowManager.open({title:"Color",items:{type:"container",layout:"flex",direction:"row",align:"stretch",padding:5,spacing:10,items:[{type:"colorpicker",value:c,onchange:function(){var a=this.rgb();f&&(f.find("#r").value(a.r),f.find("#g").value(a.g),f.find("#b").value(a.b),f.find("#hex").value(this.value().substr(1)),e(this.value()))}},{type:"form",padding:0,labelGap:5,defaults:{type:"textbox",size:7,value:"0",flex:1,spellcheck:!1,onchange:function(){var a,b,c=f.find("colorpicker")[0];return a=this.name(),b=this.value(),"hex"==a?(b="#"+b,d(b),void c.value(b)):(b={r:f.find("#r").value(),g:f.find("#g").value(),b:f.find("#b").value()},c.value(b),void d(b))}},items:[{name:"r",label:"R",autofocus:1},{name:"g",label:"G"},{name:"b",label:"B"},{name:"hex",label:"#",value:"000000"},{name:"preview",type:"container",border:1}]}]},onSubmit:function(){b("#"+this.toJSON().hex)}});d(c)}a.settings.color_picker_callback||(a.settings.color_picker_callback=b)});
@@ -1,118 +0,0 @@
1
- /* Generic */
2
- body {
3
- font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px;
4
- scrollbar-3dlight-color:#F0F0EE;
5
- scrollbar-arrow-color:#676662;
6
- scrollbar-base-color:#F0F0EE;
7
- scrollbar-darkshadow-color:#DDDDDD;
8
- scrollbar-face-color:#E0E0DD;
9
- scrollbar-highlight-color:#F0F0EE;
10
- scrollbar-shadow-color:#F0F0EE;
11
- scrollbar-track-color:#F5F5F5;
12
- background:#F0F0EE;
13
- padding:0;
14
- margin:8px 8px 0 8px;
15
- }
16
-
17
- html {background:#F0F0EE;}
18
- td {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;}
19
- textarea {resize:none;outline:none;}
20
- a:link, a:visited {color:black;}
21
- a:hover {color:#2B6FB6;}
22
- .nowrap {white-space: nowrap}
23
-
24
- /* Forms */
25
- fieldset {margin:0; padding:4px; border:1px solid #919B9C; font-family:Verdana, Arial; font-size:10px;}
26
- legend {color:#2B6FB6; font-weight:bold;}
27
- label.msg {display:none;}
28
- label.invalid {color:#EE0000; display:inline;}
29
- input.invalid {border:1px solid #EE0000;}
30
- input {background:#FFF; border:1px solid #CCC;}
31
- input, select, textarea {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;}
32
- input, select, textarea {border:1px solid #808080;}
33
- input.radio {border:1px none #000000; background:transparent; vertical-align:middle;}
34
- input.checkbox {border:1px none #000000; background:transparent; vertical-align:middle;}
35
- .input_noborder {border:0;}
36
-
37
- /* Buttons */
38
- #insert, #cancel, input.button, .updateButton {
39
- border:0; margin:0; padding:0;
40
- font-weight:bold;
41
- width:94px; height:26px;
42
- background:url(../img/buttons.png) 0 -26px;
43
- cursor:pointer;
44
- padding-bottom:2px;
45
- float:left;
46
- }
47
-
48
- #insert {background:url(../img/buttons.png) 0 -52px}
49
- #cancel {background:url(../img/buttons.png) 0 0; float:right}
50
-
51
- /* Browse */
52
- a.pickcolor, a.browse {text-decoration:none}
53
- a.browse span {display:block; width:20px; height:18px; background:url(../img/icons.gif) -20px 0 no-repeat; border:1px solid #FFF; margin-left:1px;}
54
- .mceOldBoxModel a.browse span {width:22px; height:20px;}
55
- a.browse:hover span {border:1px solid #0A246A; background-color:#B2BBD0;}
56
- a.browse span.disabled {border:1px solid white; opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)}
57
- a.browse:hover span.disabled {border:1px solid white; background-color:transparent;}
58
- a.pickcolor span {display:block; width:20px; height:16px; background:url(../img/icons.gif) -840px 0; margin-left:2px;}
59
- .mceOldBoxModel a.pickcolor span {width:21px; height:17px;}
60
- a.pickcolor:hover span {background-color:#B2BBD0;}
61
- a.pickcolor:hover span.disabled {}
62
-
63
- /* Charmap */
64
- table.charmap {border:1px solid #AAA; text-align:center}
65
- td.charmap, #charmap a {width:18px; height:18px; color:#000; border:1px solid #AAA; text-align:center; font-size:12px; vertical-align:middle; line-height: 18px;}
66
- #charmap a {display:block; color:#000; text-decoration:none; border:0}
67
- #charmap a:hover {background:#CCC;color:#2B6FB6}
68
- #charmap #codeN {font-size:10px; font-family:Arial,Helvetica,sans-serif; text-align:center}
69
- #charmap #codeV {font-size:40px; height:80px; border:1px solid #AAA; text-align:center}
70
-
71
- /* Source */
72
- .wordWrapCode {vertical-align:middle; border:1px none #000000; background:transparent;}
73
- .mceActionPanel {margin-top:5px;}
74
-
75
- /* Tabs classes */
76
- .tabs {width:100%; height:18px; line-height:normal; background:url(../img/tabs.gif) repeat-x 0 -72px;}
77
- .tabs ul {margin:0; padding:0; list-style:none;}
78
- .tabs li {float:left; background:url(../img/tabs.gif) no-repeat 0 0; margin:0 2px 0 0; padding:0 0 0 10px; line-height:17px; height:18px; display:block;}
79
- .tabs li.current {background:url(../img/tabs.gif) no-repeat 0 -18px; margin-right:2px;}
80
- .tabs span {float:left; display:block; background:url(../img/tabs.gif) no-repeat right -36px; padding:0px 10px 0 0;}
81
- .tabs .current span {background:url(../img/tabs.gif) no-repeat right -54px;}
82
- .tabs a {text-decoration:none; font-family:Verdana, Arial; font-size:10px;}
83
- .tabs a:link, .tabs a:visited, .tabs a:hover {color:black;}
84
-
85
- /* Panels */
86
- .panel_wrapper div.panel {display:none;}
87
- .panel_wrapper div.current {display:block; width:100%; height:300px; overflow:visible;}
88
- .panel_wrapper {border:1px solid #919B9C; border-top:0px; padding:10px; padding-top:5px; clear:both; background:white;}
89
-
90
- /* Columns */
91
- .column {float:left;}
92
- .properties {width:100%;}
93
- .properties .column1 {}
94
- .properties .column2 {text-align:left;}
95
-
96
- /* Titles */
97
- h1, h2, h3, h4 {color:#2B6FB6; margin:0; padding:0; padding-top:5px;}
98
- h3 {font-size:14px;}
99
- .title {font-size:12px; font-weight:bold; color:#2B6FB6;}
100
-
101
- /* Dialog specific */
102
- #link .panel_wrapper, #link div.current {height:125px;}
103
- #image .panel_wrapper, #image div.current {height:200px;}
104
- #plugintable thead {font-weight:bold; background:#DDD;}
105
- #plugintable, #about #plugintable td {border:1px solid #919B9C;}
106
- #plugintable {width:96%; margin-top:10px;}
107
- #pluginscontainer {height:290px; overflow:auto;}
108
- #colorpicker #preview {display:inline-block; padding-left:40px; height:14px; border:1px solid black; margin-left:5px; margin-right: 5px}
109
- #colorpicker #previewblock {position: relative; top: -3px; padding-left:5px; padding-top: 0px; display:inline}
110
- #colorpicker #preview_wrapper { text-align:center; padding-top:4px; white-space: nowrap}
111
- #colorpicker #colors {float:left; border:1px solid gray; cursor:crosshair;}
112
- #colorpicker #light {border:1px solid gray; margin-left:5px; float:left;width:15px; height:150px; cursor:crosshair;}
113
- #colorpicker #light div {overflow:hidden;}
114
- #colorpicker .panel_wrapper div.current {height:175px;}
115
- #colorpicker #namedcolors {width:150px;}
116
- #colorpicker #namedcolors a {display:block; float:left; width:10px; height:10px; margin:1px 1px 0 0; overflow:hidden;}
117
- #colorpicker #colornamecontainer {margin-top:5px;}
118
- #colorpicker #picker_panel fieldset {margin:auto;width:325px;}
@@ -1,297 +0,0 @@
1
- /**
2
- * plugin.js
3
- *
4
- * Copyright, Moxiecode Systems AB
5
- * Released under LGPL License.
6
- *
7
- * License: http://www.tinymce.com/license
8
- * Contributing: http://www.tinymce.com/contributing
9
- */
10
-
11
- /*global tinymce:true, console:true */
12
- /*eslint no-console:0, new-cap:0 */
13
-
14
- /**
15
- * This plugin adds missing events form the 4.x API back. Not every event is
16
- * properly supported but most things should work.
17
- *
18
- * Unsupported things:
19
- * - No editor.onEvent
20
- * - Can't cancel execCommands with beforeExecCommand
21
- */
22
- (function(tinymce) {
23
- var reported;
24
-
25
- function noop() {
26
- }
27
-
28
- function log(apiCall) {
29
- if (!reported && window && window.console) {
30
- reported = true;
31
- console.log("Deprecated TinyMCE API call: " + apiCall);
32
- }
33
- }
34
-
35
- function Dispatcher(target, newEventName, argsMap, defaultScope) {
36
- target = target || this;
37
-
38
- if (!newEventName) {
39
- this.add = this.addToTop = this.remove = this.dispatch = noop;
40
- return;
41
- }
42
-
43
- this.add = function(callback, scope, prepend) {
44
- log('<target>.on' + newEventName + ".add(..)");
45
-
46
- // Convert callback({arg1:x, arg2:x}) -> callback(arg1, arg2)
47
- function patchedEventCallback(e) {
48
- var callbackArgs = [];
49
-
50
- if (typeof argsMap == "string") {
51
- argsMap = argsMap.split(" ");
52
- }
53
-
54
- if (argsMap && typeof argsMap != "function") {
55
- for (var i = 0; i < argsMap.length; i++) {
56
- callbackArgs.push(e[argsMap[i]]);
57
- }
58
- }
59
-
60
- if (typeof argsMap == "function") {
61
- callbackArgs = argsMap(newEventName, e, target);
62
- if (!callbackArgs) {
63
- return;
64
- }
65
- }
66
-
67
- if (!argsMap) {
68
- callbackArgs = [e];
69
- }
70
-
71
- callbackArgs.unshift(defaultScope || target);
72
-
73
- if (callback.apply(scope || defaultScope || target, callbackArgs) === false) {
74
- e.stopImmediatePropagation();
75
- }
76
- }
77
-
78
- target.on(newEventName, patchedEventCallback, prepend);
79
-
80
- return patchedEventCallback;
81
- };
82
-
83
- this.addToTop = function(callback, scope) {
84
- this.add(callback, scope, true);
85
- };
86
-
87
- this.remove = function(callback) {
88
- return target.off(newEventName, callback);
89
- };
90
-
91
- this.dispatch = function() {
92
- target.fire(newEventName);
93
-
94
- return true;
95
- };
96
- }
97
-
98
- tinymce.util.Dispatcher = Dispatcher;
99
- tinymce.onBeforeUnload = new Dispatcher(tinymce, "BeforeUnload");
100
- tinymce.onAddEditor = new Dispatcher(tinymce, "AddEditor", "editor");
101
- tinymce.onRemoveEditor = new Dispatcher(tinymce, "RemoveEditor", "editor");
102
-
103
- tinymce.util.Cookie = {
104
- get: noop, getHash: noop, remove: noop, set: noop, setHash: noop
105
- };
106
-
107
- function patchEditor(editor) {
108
- function patchEditorEvents(oldEventNames, argsMap) {
109
- tinymce.each(oldEventNames.split(" "), function(oldName) {
110
- editor["on" + oldName] = new Dispatcher(editor, oldName, argsMap);
111
- });
112
- }
113
-
114
- function convertUndoEventArgs(type, event, target) {
115
- return [
116
- event.level,
117
- target
118
- ];
119
- }
120
-
121
- function filterSelectionEvents(needsSelection) {
122
- return function(type, e) {
123
- if ((!e.selection && !needsSelection) || e.selection == needsSelection) {
124
- return [e];
125
- }
126
- };
127
- }
128
-
129
- if (editor.controlManager) {
130
- return;
131
- }
132
-
133
- function cmNoop() {
134
- var obj = {}, methods = 'add addMenu addSeparator collapse createMenu destroy displayColor expand focus ' +
135
- 'getLength hasMenus hideMenu isActive isCollapsed isDisabled isRendered isSelected mark ' +
136
- 'postRender remove removeAll renderHTML renderMenu renderNode renderTo select selectByIndex ' +
137
- 'setActive setAriaProperty setColor setDisabled setSelected setState showMenu update';
138
-
139
- log('editor.controlManager.*');
140
-
141
- function _noop() {
142
- return cmNoop();
143
- }
144
-
145
- tinymce.each(methods.split(' '), function(method) {
146
- obj[method] = _noop;
147
- });
148
-
149
- return obj;
150
- }
151
-
152
- editor.controlManager = {
153
- buttons: {},
154
-
155
- setDisabled: function(name, state) {
156
- log("controlManager.setDisabled(..)");
157
-
158
- if (this.buttons[name]) {
159
- this.buttons[name].disabled(state);
160
- }
161
- },
162
-
163
- setActive: function(name, state) {
164
- log("controlManager.setActive(..)");
165
-
166
- if (this.buttons[name]) {
167
- this.buttons[name].active(state);
168
- }
169
- },
170
-
171
- onAdd: new Dispatcher(),
172
- onPostRender: new Dispatcher(),
173
-
174
- add: function(obj) {
175
- return obj;
176
- },
177
- createButton: cmNoop,
178
- createColorSplitButton: cmNoop,
179
- createControl: cmNoop,
180
- createDropMenu: cmNoop,
181
- createListBox: cmNoop,
182
- createMenuButton: cmNoop,
183
- createSeparator: cmNoop,
184
- createSplitButton: cmNoop,
185
- createToolbar: cmNoop,
186
- createToolbarGroup: cmNoop,
187
- destroy: noop,
188
- get: noop,
189
- setControlType: cmNoop
190
- };
191
-
192
- patchEditorEvents("PreInit BeforeRenderUI PostRender Load Init Remove Activate Deactivate", "editor");
193
- patchEditorEvents("Click MouseUp MouseDown DblClick KeyDown KeyUp KeyPress ContextMenu Paste Submit Reset");
194
- patchEditorEvents("BeforeExecCommand ExecCommand", "command ui value args"); // args.terminate not supported
195
- patchEditorEvents("PreProcess PostProcess LoadContent SaveContent Change");
196
- patchEditorEvents("BeforeSetContent BeforeGetContent SetContent GetContent", filterSelectionEvents(false));
197
- patchEditorEvents("SetProgressState", "state time");
198
- patchEditorEvents("VisualAid", "element hasVisual");
199
- patchEditorEvents("Undo Redo", convertUndoEventArgs);
200
-
201
- patchEditorEvents("NodeChange", function(type, e) {
202
- return [
203
- editor.controlManager,
204
- e.element,
205
- editor.selection.isCollapsed(),
206
- e
207
- ];
208
- });
209
-
210
- var originalAddButton = editor.addButton;
211
- editor.addButton = function(name, settings) {
212
- var originalOnPostRender;
213
-
214
- function patchedPostRender() {
215
- editor.controlManager.buttons[name] = this;
216
-
217
- if (originalOnPostRender) {
218
- return originalOnPostRender.call(this);
219
- }
220
- }
221
-
222
- for (var key in settings) {
223
- if (key.toLowerCase() === "onpostrender") {
224
- originalOnPostRender = settings[key];
225
- settings.onPostRender = patchedPostRender;
226
- }
227
- }
228
-
229
- if (!originalOnPostRender) {
230
- settings.onPostRender = patchedPostRender;
231
- }
232
-
233
- if (settings.title) {
234
- settings.title = tinymce.i18n.translate((editor.settings.language || "en") + "." + settings.title);
235
- }
236
-
237
- return originalAddButton.call(this, name, settings);
238
- };
239
-
240
- editor.on('init', function() {
241
- var undoManager = editor.undoManager, selection = editor.selection;
242
-
243
- undoManager.onUndo = new Dispatcher(editor, "Undo", convertUndoEventArgs, null, undoManager);
244
- undoManager.onRedo = new Dispatcher(editor, "Redo", convertUndoEventArgs, null, undoManager);
245
- undoManager.onBeforeAdd = new Dispatcher(editor, "BeforeAddUndo", null, undoManager);
246
- undoManager.onAdd = new Dispatcher(editor, "AddUndo", null, undoManager);
247
-
248
- selection.onBeforeGetContent = new Dispatcher(editor, "BeforeGetContent", filterSelectionEvents(true), selection);
249
- selection.onGetContent = new Dispatcher(editor, "GetContent", filterSelectionEvents(true), selection);
250
- selection.onBeforeSetContent = new Dispatcher(editor, "BeforeSetContent", filterSelectionEvents(true), selection);
251
- selection.onSetContent = new Dispatcher(editor, "SetContent", filterSelectionEvents(true), selection);
252
- });
253
-
254
- editor.on('BeforeRenderUI', function() {
255
- var windowManager = editor.windowManager;
256
-
257
- windowManager.onOpen = new Dispatcher();
258
- windowManager.onClose = new Dispatcher();
259
- windowManager.createInstance = function(className, a, b, c, d, e) {
260
- log("windowManager.createInstance(..)");
261
-
262
- var constr = tinymce.resolve(className);
263
- return new constr(a, b, c, d, e);
264
- };
265
- });
266
- }
267
-
268
- tinymce.on('SetupEditor', patchEditor);
269
- tinymce.PluginManager.add("compat3x", patchEditor);
270
-
271
- tinymce.addI18n = function(prefix, o) {
272
- var I18n = tinymce.util.I18n, each = tinymce.each;
273
-
274
- if (typeof(prefix) == "string" && prefix.indexOf('.') === -1) {
275
- I18n.add(prefix, o);
276
- return;
277
- }
278
-
279
- if (!tinymce.is(prefix, 'string')) {
280
- each(prefix, function(o, lc) {
281
- each(o, function(o, g) {
282
- each(o, function(o, k) {
283
- if (g === 'common') {
284
- I18n.data[lc + '.' + k] = o;
285
- } else {
286
- I18n.data[lc + '.' + g + '.' + k] = o;
287
- }
288
- });
289
- });
290
- });
291
- } else {
292
- each(o, function(o, k) {
293
- I18n.data[prefix + '.' + k] = o;
294
- });
295
- }
296
- };
297
- })(tinymce);
@@ -1 +0,0 @@
1
- !function(a){function b(){}function c(a){!f&&window&&window.console&&(f=!0,console.log("Deprecated TinyMCE API call: "+a))}function d(a,d,e,f){return a=a||this,d?(this.add=function(b,g,h){function i(c){var h=[];if("string"==typeof e&&(e=e.split(" ")),e&&"function"!=typeof e)for(var i=0;i<e.length;i++)h.push(c[e[i]]);("function"!=typeof e||(h=e(d,c,a)))&&(e||(h=[c]),h.unshift(f||a),b.apply(g||f||a,h)===!1&&c.stopImmediatePropagation())}return c("<target>.on"+d+".add(..)"),a.on(d,i,h),i},this.addToTop=function(a,b){this.add(a,b,!0)},this.remove=function(b){return a.off(d,b)},void(this.dispatch=function(){return a.fire(d),!0})):void(this.add=this.addToTop=this.remove=this.dispatch=b)}function e(e){function f(b,c){a.each(b.split(" "),function(a){e["on"+a]=new d(e,a,c)})}function g(a,b,c){return[b.level,c]}function h(a){return function(b,c){return!c.selection&&!a||c.selection==a?[c]:void 0}}function i(){function b(){return i()}var d={},e="add addMenu addSeparator collapse createMenu destroy displayColor expand focus getLength hasMenus hideMenu isActive isCollapsed isDisabled isRendered isSelected mark postRender remove removeAll renderHTML renderMenu renderNode renderTo select selectByIndex setActive setAriaProperty setColor setDisabled setSelected setState showMenu update";return c("editor.controlManager.*"),a.each(e.split(" "),function(a){d[a]=b}),d}if(!e.controlManager){e.controlManager={buttons:{},setDisabled:function(a,b){c("controlManager.setDisabled(..)"),this.buttons[a]&&this.buttons[a].disabled(b)},setActive:function(a,b){c("controlManager.setActive(..)"),this.buttons[a]&&this.buttons[a].active(b)},onAdd:new d,onPostRender:new d,add:function(a){return a},createButton:i,createColorSplitButton:i,createControl:i,createDropMenu:i,createListBox:i,createMenuButton:i,createSeparator:i,createSplitButton:i,createToolbar:i,createToolbarGroup:i,destroy:b,get:b,setControlType:i},f("PreInit BeforeRenderUI PostRender Load Init Remove Activate Deactivate","editor"),f("Click MouseUp MouseDown DblClick KeyDown KeyUp KeyPress ContextMenu Paste Submit Reset"),f("BeforeExecCommand ExecCommand","command ui value args"),f("PreProcess PostProcess LoadContent SaveContent Change"),f("BeforeSetContent BeforeGetContent SetContent GetContent",h(!1)),f("SetProgressState","state time"),f("VisualAid","element hasVisual"),f("Undo Redo",g),f("NodeChange",function(a,b){return[e.controlManager,b.element,e.selection.isCollapsed(),b]});var j=e.addButton;e.addButton=function(b,c){function d(){return e.controlManager.buttons[b]=this,f?f.call(this):void 0}var f;for(var g in c)"onpostrender"===g.toLowerCase()&&(f=c[g],c.onPostRender=d);return f||(c.onPostRender=d),c.title&&(c.title=a.i18n.translate((e.settings.language||"en")+"."+c.title)),j.call(this,b,c)},e.on("init",function(){var a=e.undoManager,b=e.selection;a.onUndo=new d(e,"Undo",g,null,a),a.onRedo=new d(e,"Redo",g,null,a),a.onBeforeAdd=new d(e,"BeforeAddUndo",null,a),a.onAdd=new d(e,"AddUndo",null,a),b.onBeforeGetContent=new d(e,"BeforeGetContent",h(!0),b),b.onGetContent=new d(e,"GetContent",h(!0),b),b.onBeforeSetContent=new d(e,"BeforeSetContent",h(!0),b),b.onSetContent=new d(e,"SetContent",h(!0),b)}),e.on("BeforeRenderUI",function(){var b=e.windowManager;b.onOpen=new d,b.onClose=new d,b.createInstance=function(b,d,e,f,g,h){c("windowManager.createInstance(..)");var i=a.resolve(b);return new i(d,e,f,g,h)}})}}var f;a.util.Dispatcher=d,a.onBeforeUnload=new d(a,"BeforeUnload"),a.onAddEditor=new d(a,"AddEditor","editor"),a.onRemoveEditor=new d(a,"RemoveEditor","editor"),a.util.Cookie={get:b,getHash:b,remove:b,set:b,setHash:b},a.on("SetupEditor",e),a.PluginManager.add("compat3x",e),a.addI18n=function(b,c){var d=a.util.I18n,e=a.each;return"string"==typeof b&&-1===b.indexOf(".")?void d.add(b,c):void(a.is(b,"string")?e(c,function(a,c){d.data[b+"."+c]=a}):e(b,function(a,b){e(a,function(a,c){e(a,function(a,e){"common"===c?d.data[b+"."+e]=a:d.data[b+"."+c+"."+e]=a})})}))}}(tinymce);