diff options
Diffstat (limited to 'sources/plugins/colordialog')
68 files changed, 1124 insertions, 0 deletions
diff --git a/sources/plugins/colordialog/dialogs/colordialog.js b/sources/plugins/colordialog/dialogs/colordialog.js new file mode 100644 index 00000000..f5ecd483 --- /dev/null +++ b/sources/plugins/colordialog/dialogs/colordialog.js | |||
@@ -0,0 +1,327 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.dialog.add( 'colordialog', function( editor ) { | ||
7 | // Define some shorthands. | ||
8 | var $el = CKEDITOR.dom.element, | ||
9 | $doc = CKEDITOR.document, | ||
10 | lang = editor.lang.colordialog; | ||
11 | |||
12 | // Reference the dialog. | ||
13 | var dialog; | ||
14 | |||
15 | var spacer = { | ||
16 | type: 'html', | ||
17 | html: ' ' | ||
18 | }; | ||
19 | |||
20 | var selected; | ||
21 | |||
22 | function clearSelected() { | ||
23 | $doc.getById( selHiColorId ).removeStyle( 'background-color' ); | ||
24 | dialog.getContentElement( 'picker', 'selectedColor' ).setValue( '' ); | ||
25 | selected && selected.removeAttribute( 'aria-selected' ); | ||
26 | selected = null; | ||
27 | } | ||
28 | |||
29 | function updateSelected( evt ) { | ||
30 | var target = evt.data.getTarget(), | ||
31 | color; | ||
32 | |||
33 | if ( target.getName() == 'td' && ( color = target.getChild( 0 ).getHtml() ) ) { | ||
34 | selected = target; | ||
35 | selected.setAttribute( 'aria-selected', true ); | ||
36 | dialog.getContentElement( 'picker', 'selectedColor' ).setValue( color ); | ||
37 | } | ||
38 | } | ||
39 | |||
40 | // Basing black-white decision off of luma scheme using the Rec. 709 version | ||
41 | function whiteOrBlack( color ) { | ||
42 | color = color.replace( /^#/, '' ); | ||
43 | for ( var i = 0, rgb = []; i <= 2; i++ ) | ||
44 | rgb[ i ] = parseInt( color.substr( i * 2, 2 ), 16 ); | ||
45 | var luma = ( 0.2126 * rgb[ 0 ] ) + ( 0.7152 * rgb[ 1 ] ) + ( 0.0722 * rgb[ 2 ] ); | ||
46 | return '#' + ( luma >= 165 ? '000' : 'fff' ); | ||
47 | } | ||
48 | |||
49 | // Distinguish focused and hover states. | ||
50 | var focused, hovered; | ||
51 | |||
52 | // Apply highlight style. | ||
53 | function updateHighlight( event ) { | ||
54 | // Convert to event. | ||
55 | !event.name && ( event = new CKEDITOR.event( event ) ); | ||
56 | |||
57 | var isFocus = !( /mouse/ ).test( event.name ), | ||
58 | target = event.data.getTarget(), | ||
59 | color; | ||
60 | |||
61 | if ( target.getName() == 'td' && ( color = target.getChild( 0 ).getHtml() ) ) { | ||
62 | removeHighlight( event ); | ||
63 | |||
64 | isFocus ? focused = target : hovered = target; | ||
65 | |||
66 | // Apply outline style to show focus. | ||
67 | if ( isFocus ) { | ||
68 | target.setStyle( 'border-color', whiteOrBlack( color ) ); | ||
69 | target.setStyle( 'border-style', 'dotted' ); | ||
70 | } | ||
71 | |||
72 | $doc.getById( hicolorId ).setStyle( 'background-color', color ); | ||
73 | $doc.getById( hicolorTextId ).setHtml( color ); | ||
74 | } | ||
75 | } | ||
76 | |||
77 | function clearHighlight() { | ||
78 | var color = focused.getChild( 0 ).getHtml(); | ||
79 | focused.setStyle( 'border-color', color ); | ||
80 | focused.setStyle( 'border-style', 'solid' ); | ||
81 | $doc.getById( hicolorId ).removeStyle( 'background-color' ); | ||
82 | $doc.getById( hicolorTextId ).setHtml( ' ' ); | ||
83 | focused = null; | ||
84 | } | ||
85 | |||
86 | // Remove previously focused style. | ||
87 | function removeHighlight( event ) { | ||
88 | var isFocus = !( /mouse/ ).test( event.name ), | ||
89 | target = isFocus && focused; | ||
90 | |||
91 | if ( target ) { | ||
92 | var color = target.getChild( 0 ).getHtml(); | ||
93 | target.setStyle( 'border-color', color ); | ||
94 | target.setStyle( 'border-style', 'solid' ); | ||
95 | } | ||
96 | |||
97 | if ( !( focused || hovered ) ) { | ||
98 | $doc.getById( hicolorId ).removeStyle( 'background-color' ); | ||
99 | $doc.getById( hicolorTextId ).setHtml( ' ' ); | ||
100 | } | ||
101 | } | ||
102 | |||
103 | function onKeyStrokes( evt ) { | ||
104 | var domEvt = evt.data; | ||
105 | |||
106 | var element = domEvt.getTarget(); | ||
107 | var relative, nodeToMove; | ||
108 | var keystroke = domEvt.getKeystroke(), | ||
109 | rtl = editor.lang.dir == 'rtl'; | ||
110 | |||
111 | switch ( keystroke ) { | ||
112 | // UP-ARROW | ||
113 | case 38: | ||
114 | // relative is TR | ||
115 | if ( ( relative = element.getParent().getPrevious() ) ) { | ||
116 | nodeToMove = relative.getChild( [ element.getIndex() ] ); | ||
117 | nodeToMove.focus(); | ||
118 | } | ||
119 | domEvt.preventDefault(); | ||
120 | break; | ||
121 | // DOWN-ARROW | ||
122 | case 40: | ||
123 | // relative is TR | ||
124 | if ( ( relative = element.getParent().getNext() ) ) { | ||
125 | nodeToMove = relative.getChild( [ element.getIndex() ] ); | ||
126 | if ( nodeToMove && nodeToMove.type == 1 ) | ||
127 | nodeToMove.focus(); | ||
128 | |||
129 | } | ||
130 | domEvt.preventDefault(); | ||
131 | break; | ||
132 | |||
133 | // SPACE | ||
134 | // ENTER | ||
135 | case 32: | ||
136 | case 13: | ||
137 | updateSelected( evt ); | ||
138 | domEvt.preventDefault(); | ||
139 | break; | ||
140 | |||
141 | // RIGHT-ARROW | ||
142 | case rtl ? 37 : 39: | ||
143 | // relative is TD | ||
144 | if ( ( nodeToMove = element.getNext() ) ) { | ||
145 | if ( nodeToMove.type == 1 ) { | ||
146 | nodeToMove.focus(); | ||
147 | domEvt.preventDefault( true ); | ||
148 | } | ||
149 | } | ||
150 | // relative is TR | ||
151 | else if ( ( relative = element.getParent().getNext() ) ) { | ||
152 | nodeToMove = relative.getChild( [ 0 ] ); | ||
153 | if ( nodeToMove && nodeToMove.type == 1 ) { | ||
154 | nodeToMove.focus(); | ||
155 | domEvt.preventDefault( true ); | ||
156 | } | ||
157 | } | ||
158 | break; | ||
159 | |||
160 | // LEFT-ARROW | ||
161 | case rtl ? 39 : 37: | ||
162 | // relative is TD | ||
163 | if ( ( nodeToMove = element.getPrevious() ) ) { | ||
164 | nodeToMove.focus(); | ||
165 | domEvt.preventDefault( true ); | ||
166 | } | ||
167 | // relative is TR | ||
168 | else if ( ( relative = element.getParent().getPrevious() ) ) { | ||
169 | nodeToMove = relative.getLast(); | ||
170 | nodeToMove.focus(); | ||
171 | domEvt.preventDefault( true ); | ||
172 | } | ||
173 | break; | ||
174 | default: | ||
175 | // Do not stop not handled events. | ||
176 | return; | ||
177 | } | ||
178 | } | ||
179 | |||
180 | function createColorTable() { | ||
181 | table = CKEDITOR.dom.element.createFromHtml( '<table tabIndex="-1" aria-label="' + lang.options + '"' + | ||
182 | ' role="grid" style="border-collapse:separate;" cellspacing="0">' + | ||
183 | '<caption class="cke_voice_label">' + lang.options + '</caption>' + | ||
184 | '<tbody role="presentation"></tbody></table>' ); | ||
185 | |||
186 | table.on( 'mouseover', updateHighlight ); | ||
187 | table.on( 'mouseout', removeHighlight ); | ||
188 | |||
189 | // Create the base colors array. | ||
190 | var aColors = [ '00', '33', '66', '99', 'cc', 'ff' ]; | ||
191 | |||
192 | // This function combines two ranges of three values from the color array into a row. | ||
193 | function appendColorRow( rangeA, rangeB ) { | ||
194 | for ( var i = rangeA; i < rangeA + 3; i++ ) { | ||
195 | var row = new $el( table.$.insertRow( -1 ) ); | ||
196 | row.setAttribute( 'role', 'row' ); | ||
197 | |||
198 | for ( var j = rangeB; j < rangeB + 3; j++ ) { | ||
199 | for ( var n = 0; n < 6; n++ ) { | ||
200 | appendColorCell( row.$, '#' + aColors[ j ] + aColors[ n ] + aColors[ i ] ); | ||
201 | } | ||
202 | } | ||
203 | } | ||
204 | } | ||
205 | |||
206 | // This function create a single color cell in the color table. | ||
207 | function appendColorCell( targetRow, color ) { | ||
208 | var cell = new $el( targetRow.insertCell( -1 ) ); | ||
209 | cell.setAttribute( 'class', 'ColorCell' ); | ||
210 | cell.setAttribute( 'tabIndex', -1 ); | ||
211 | cell.setAttribute( 'role', 'gridcell' ); | ||
212 | |||
213 | cell.on( 'keydown', onKeyStrokes ); | ||
214 | cell.on( 'click', updateSelected ); | ||
215 | cell.on( 'focus', updateHighlight ); | ||
216 | cell.on( 'blur', removeHighlight ); | ||
217 | |||
218 | cell.setStyle( 'background-color', color ); | ||
219 | cell.setStyle( 'border', '1px solid ' + color ); | ||
220 | |||
221 | cell.setStyle( 'width', '14px' ); | ||
222 | cell.setStyle( 'height', '14px' ); | ||
223 | |||
224 | var colorLabel = numbering( 'color_table_cell' ); | ||
225 | cell.setAttribute( 'aria-labelledby', colorLabel ); | ||
226 | cell.append( CKEDITOR.dom.element.createFromHtml( '<span id="' + colorLabel + '" class="cke_voice_label">' + color + '</span>', CKEDITOR.document ) ); | ||
227 | } | ||
228 | |||
229 | appendColorRow( 0, 0 ); | ||
230 | appendColorRow( 3, 0 ); | ||
231 | appendColorRow( 0, 3 ); | ||
232 | appendColorRow( 3, 3 ); | ||
233 | |||
234 | // Create the last row. | ||
235 | var oRow = new $el( table.$.insertRow( -1 ) ); | ||
236 | oRow.setAttribute( 'role', 'row' ); | ||
237 | |||
238 | // Create the gray scale colors cells. | ||
239 | appendColorCell( oRow.$, '#000000' ); | ||
240 | for ( var n = 0; n < 16; n++ ) { | ||
241 | var c = n.toString( 16 ); | ||
242 | appendColorCell( oRow.$, '#' + c + c + c + c + c + c ); | ||
243 | } | ||
244 | appendColorCell( oRow.$, '#ffffff' ); | ||
245 | } | ||
246 | |||
247 | var numbering = function( id ) { | ||
248 | return CKEDITOR.tools.getNextId() + '_' + id; | ||
249 | }, | ||
250 | hicolorId = numbering( 'hicolor' ), | ||
251 | hicolorTextId = numbering( 'hicolortext' ), | ||
252 | selHiColorId = numbering( 'selhicolor' ), | ||
253 | table; | ||
254 | |||
255 | createColorTable(); | ||
256 | |||
257 | return { | ||
258 | title: lang.title, | ||
259 | minWidth: 360, | ||
260 | minHeight: 220, | ||
261 | onLoad: function() { | ||
262 | // Update reference. | ||
263 | dialog = this; | ||
264 | }, | ||
265 | onHide: function() { | ||
266 | clearSelected(); | ||
267 | clearHighlight(); | ||
268 | }, | ||
269 | contents: [ { | ||
270 | id: 'picker', | ||
271 | label: lang.title, | ||
272 | accessKey: 'I', | ||
273 | elements: [ { | ||
274 | type: 'hbox', | ||
275 | padding: 0, | ||
276 | widths: [ '70%', '10%', '30%' ], | ||
277 | children: [ { | ||
278 | type: 'html', | ||
279 | html: '<div></div>', | ||
280 | onLoad: function() { | ||
281 | CKEDITOR.document.getById( this.domId ).append( table ); | ||
282 | }, | ||
283 | focus: function() { | ||
284 | // Restore the previously focused cell, | ||
285 | // otherwise put the initial focus on the first table cell. | ||
286 | ( focused || this.getElement().getElementsByTag( 'td' ).getItem( 0 ) ).focus(); | ||
287 | } | ||
288 | }, | ||
289 | spacer, | ||
290 | { | ||
291 | type: 'vbox', | ||
292 | padding: 0, | ||
293 | widths: [ '70%', '5%', '25%' ], | ||
294 | children: [ { | ||
295 | type: 'html', | ||
296 | html: '<span>' + lang.highlight + '</span>' + | ||
297 | '<div id="' + hicolorId + '" style="border: 1px solid; height: 74px; width: 74px;"></div>' + | ||
298 | '<div id="' + hicolorTextId + '"> </div><span>' + lang.selected + '</span>' + | ||
299 | '<div id="' + selHiColorId + '" style="border: 1px solid; height: 20px; width: 74px;"></div>' | ||
300 | }, | ||
301 | { | ||
302 | type: 'text', | ||
303 | label: lang.selected, | ||
304 | labelStyle: 'display:none', | ||
305 | id: 'selectedColor', | ||
306 | style: 'width: 76px;margin-top:4px', | ||
307 | onChange: function() { | ||
308 | // Try to update color preview with new value. If fails, then set it no none. | ||
309 | try { | ||
310 | $doc.getById( selHiColorId ).setStyle( 'background-color', this.getValue() ); | ||
311 | } catch ( e ) { | ||
312 | clearSelected(); | ||
313 | } | ||
314 | } | ||
315 | }, | ||
316 | spacer, | ||
317 | { | ||
318 | type: 'button', | ||
319 | id: 'clear', | ||
320 | label: lang.clear, | ||
321 | onClick: clearSelected | ||
322 | } ] | ||
323 | } ] | ||
324 | } ] | ||
325 | } ] | ||
326 | }; | ||
327 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/af.js b/sources/plugins/colordialog/lang/af.js new file mode 100644 index 00000000..de005de4 --- /dev/null +++ b/sources/plugins/colordialog/lang/af.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'af', { | ||
6 | clear: 'Herstel', | ||
7 | highlight: 'Aktief', | ||
8 | options: 'Kleuropsies', | ||
9 | selected: 'Geselekteer', | ||
10 | title: 'Kies kleur' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/ar.js b/sources/plugins/colordialog/lang/ar.js new file mode 100644 index 00000000..804d1535 --- /dev/null +++ b/sources/plugins/colordialog/lang/ar.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'ar', { | ||
6 | clear: 'مسح', | ||
7 | highlight: 'تحديد', | ||
8 | options: 'اختيارات الألوان', | ||
9 | selected: 'اللون المختار', | ||
10 | title: 'اختر اللون' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/bg.js b/sources/plugins/colordialog/lang/bg.js new file mode 100644 index 00000000..46cd0b44 --- /dev/null +++ b/sources/plugins/colordialog/lang/bg.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'bg', { | ||
6 | clear: 'Изчистване', | ||
7 | highlight: 'Осветяване', | ||
8 | options: 'Цветови опции', | ||
9 | selected: 'Изберете цвят', | ||
10 | title: 'Изберете цвят' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/bn.js b/sources/plugins/colordialog/lang/bn.js new file mode 100644 index 00000000..ff8b58ac --- /dev/null +++ b/sources/plugins/colordialog/lang/bn.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'bn', { | ||
6 | clear: 'Clear', // MISSING | ||
7 | highlight: 'Highlight', // MISSING | ||
8 | options: 'Color Options', // MISSING | ||
9 | selected: 'Selected Color', // MISSING | ||
10 | title: 'Select color' // MISSING | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/bs.js b/sources/plugins/colordialog/lang/bs.js new file mode 100644 index 00000000..3d8145d7 --- /dev/null +++ b/sources/plugins/colordialog/lang/bs.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'bs', { | ||
6 | clear: 'Clear', // MISSING | ||
7 | highlight: 'Highlight', // MISSING | ||
8 | options: 'Color Options', // MISSING | ||
9 | selected: 'Selected Color', // MISSING | ||
10 | title: 'Select color' // MISSING | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/ca.js b/sources/plugins/colordialog/lang/ca.js new file mode 100644 index 00000000..351bde1d --- /dev/null +++ b/sources/plugins/colordialog/lang/ca.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'ca', { | ||
6 | clear: 'Neteja', | ||
7 | highlight: 'Destacat', | ||
8 | options: 'Opcions del color', | ||
9 | selected: 'Color Seleccionat', | ||
10 | title: 'Seleccioni el color' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/cs.js b/sources/plugins/colordialog/lang/cs.js new file mode 100644 index 00000000..49cb9efe --- /dev/null +++ b/sources/plugins/colordialog/lang/cs.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'cs', { | ||
6 | clear: 'Vyčistit', | ||
7 | highlight: 'Zvýraznit', | ||
8 | options: 'Nastavení barvy', | ||
9 | selected: 'Vybráno', | ||
10 | title: 'Výběr barvy' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/cy.js b/sources/plugins/colordialog/lang/cy.js new file mode 100644 index 00000000..3ee93ba4 --- /dev/null +++ b/sources/plugins/colordialog/lang/cy.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'cy', { | ||
6 | clear: 'Clirio', | ||
7 | highlight: 'Uwcholeuo', | ||
8 | options: 'Opsiynau Lliw', | ||
9 | selected: 'Lliw a Ddewiswyd', | ||
10 | title: 'Dewis lliw' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/da.js b/sources/plugins/colordialog/lang/da.js new file mode 100644 index 00000000..b4fd39de --- /dev/null +++ b/sources/plugins/colordialog/lang/da.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'da', { | ||
6 | clear: 'Nulstil', | ||
7 | highlight: 'Markér', | ||
8 | options: 'Farvemuligheder', | ||
9 | selected: 'Valgt farve', | ||
10 | title: 'Vælg farve' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/de.js b/sources/plugins/colordialog/lang/de.js new file mode 100644 index 00000000..f45d8e1c --- /dev/null +++ b/sources/plugins/colordialog/lang/de.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'de', { | ||
6 | clear: 'Entfernen', | ||
7 | highlight: 'Hervorheben', | ||
8 | options: 'Farboptionen', | ||
9 | selected: 'Ausgewählte Farbe', | ||
10 | title: 'Farbe auswählen' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/el.js b/sources/plugins/colordialog/lang/el.js new file mode 100644 index 00000000..6b4b4fcb --- /dev/null +++ b/sources/plugins/colordialog/lang/el.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'el', { | ||
6 | clear: 'Εκκαθάριση', | ||
7 | highlight: 'Σήμανση', | ||
8 | options: 'Επιλογές Χρωμάτων', | ||
9 | selected: 'Επιλεγμένο Χρώμα', | ||
10 | title: 'Επιλογή χρώματος' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/en-au.js b/sources/plugins/colordialog/lang/en-au.js new file mode 100644 index 00000000..73a1e8c3 --- /dev/null +++ b/sources/plugins/colordialog/lang/en-au.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'en-au', { | ||
6 | clear: 'Clear', // MISSING | ||
7 | highlight: 'Highlight', // MISSING | ||
8 | options: 'Color Options', // MISSING | ||
9 | selected: 'Selected Color', // MISSING | ||
10 | title: 'Select color' // MISSING | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/en-ca.js b/sources/plugins/colordialog/lang/en-ca.js new file mode 100644 index 00000000..1f0d3225 --- /dev/null +++ b/sources/plugins/colordialog/lang/en-ca.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'en-ca', { | ||
6 | clear: 'Clear', // MISSING | ||
7 | highlight: 'Highlight', // MISSING | ||
8 | options: 'Color Options', // MISSING | ||
9 | selected: 'Selected Color', // MISSING | ||
10 | title: 'Select color' // MISSING | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/en-gb.js b/sources/plugins/colordialog/lang/en-gb.js new file mode 100644 index 00000000..06fea7a0 --- /dev/null +++ b/sources/plugins/colordialog/lang/en-gb.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'en-gb', { | ||
6 | clear: 'Clear', | ||
7 | highlight: 'Highlight', | ||
8 | options: 'Colour Options', | ||
9 | selected: 'Selected Colour', | ||
10 | title: 'Select colour' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/en.js b/sources/plugins/colordialog/lang/en.js new file mode 100644 index 00000000..13ff82a3 --- /dev/null +++ b/sources/plugins/colordialog/lang/en.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'en', { | ||
6 | clear: 'Clear', | ||
7 | highlight: 'Highlight', | ||
8 | options: 'Color Options', | ||
9 | selected: 'Selected Color', | ||
10 | title: 'Select color' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/eo.js b/sources/plugins/colordialog/lang/eo.js new file mode 100644 index 00000000..13b1f90a --- /dev/null +++ b/sources/plugins/colordialog/lang/eo.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'eo', { | ||
6 | clear: 'Forigi', | ||
7 | highlight: 'Detaloj', | ||
8 | options: 'Opcioj pri koloroj', | ||
9 | selected: 'Selektita koloro', | ||
10 | title: 'Selekti koloron' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/es.js b/sources/plugins/colordialog/lang/es.js new file mode 100644 index 00000000..405cbeda --- /dev/null +++ b/sources/plugins/colordialog/lang/es.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'es', { | ||
6 | clear: 'Borrar', | ||
7 | highlight: 'Muestra', | ||
8 | options: 'Opciones de colores', | ||
9 | selected: 'Elegido', | ||
10 | title: 'Elegir color' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/et.js b/sources/plugins/colordialog/lang/et.js new file mode 100644 index 00000000..2437052f --- /dev/null +++ b/sources/plugins/colordialog/lang/et.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'et', { | ||
6 | clear: 'Eemalda', | ||
7 | highlight: 'Näidis', | ||
8 | options: 'Värvi valikud', | ||
9 | selected: 'Valitud värv', | ||
10 | title: 'Värvi valimine' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/eu.js b/sources/plugins/colordialog/lang/eu.js new file mode 100644 index 00000000..beecdf08 --- /dev/null +++ b/sources/plugins/colordialog/lang/eu.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'eu', { | ||
6 | clear: 'Garbitu', | ||
7 | highlight: 'Nabarmendu', | ||
8 | options: 'Kolore aukerak', | ||
9 | selected: 'Hautatutako kolorea', | ||
10 | title: 'Hautatu kolorea' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/fa.js b/sources/plugins/colordialog/lang/fa.js new file mode 100644 index 00000000..9cdb113f --- /dev/null +++ b/sources/plugins/colordialog/lang/fa.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'fa', { | ||
6 | clear: 'پاک کردن', | ||
7 | highlight: 'متمایز', | ||
8 | options: 'گزینههای رنگ', | ||
9 | selected: 'رنگ انتخاب شده', | ||
10 | title: 'انتخاب رنگ' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/fi.js b/sources/plugins/colordialog/lang/fi.js new file mode 100644 index 00000000..e6292467 --- /dev/null +++ b/sources/plugins/colordialog/lang/fi.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'fi', { | ||
6 | clear: 'Poista', | ||
7 | highlight: 'Korostus', | ||
8 | options: 'Värin ominaisuudet', | ||
9 | selected: 'Valittu', | ||
10 | title: 'Valitse väri' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/fo.js b/sources/plugins/colordialog/lang/fo.js new file mode 100644 index 00000000..516fbf1d --- /dev/null +++ b/sources/plugins/colordialog/lang/fo.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'fo', { | ||
6 | clear: 'Strika', | ||
7 | highlight: 'Framheva', | ||
8 | options: 'Litmøguleikar', | ||
9 | selected: 'Valdur litur', | ||
10 | title: 'Vel lit' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/fr-ca.js b/sources/plugins/colordialog/lang/fr-ca.js new file mode 100644 index 00000000..b235b993 --- /dev/null +++ b/sources/plugins/colordialog/lang/fr-ca.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'fr-ca', { | ||
6 | clear: 'Effacer', | ||
7 | highlight: 'Surligner', | ||
8 | options: 'Options de couleur', | ||
9 | selected: 'Couleur sélectionnée', | ||
10 | title: 'Choisir une couleur' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/fr.js b/sources/plugins/colordialog/lang/fr.js new file mode 100644 index 00000000..706df2ad --- /dev/null +++ b/sources/plugins/colordialog/lang/fr.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'fr', { | ||
6 | clear: 'Effacer', | ||
7 | highlight: 'Détails', | ||
8 | options: 'Option des couleurs', | ||
9 | selected: 'Couleur choisie', | ||
10 | title: 'Choisir une couleur' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/gl.js b/sources/plugins/colordialog/lang/gl.js new file mode 100644 index 00000000..a5f42e14 --- /dev/null +++ b/sources/plugins/colordialog/lang/gl.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'gl', { | ||
6 | clear: 'Limpar', | ||
7 | highlight: 'Resaltar', | ||
8 | options: 'Opcións de cor', | ||
9 | selected: 'Cor seleccionado', | ||
10 | title: 'Seleccione unha cor' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/gu.js b/sources/plugins/colordialog/lang/gu.js new file mode 100644 index 00000000..bacc9d22 --- /dev/null +++ b/sources/plugins/colordialog/lang/gu.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'gu', { | ||
6 | clear: 'સાફ કરવું', | ||
7 | highlight: 'હાઈઈટ', | ||
8 | options: 'રંગના વિકલ્પ', | ||
9 | selected: 'પસંદ કરેલો રંગ', | ||
10 | title: 'રંગ પસંદ કરો' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/he.js b/sources/plugins/colordialog/lang/he.js new file mode 100644 index 00000000..3bd448b9 --- /dev/null +++ b/sources/plugins/colordialog/lang/he.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'he', { | ||
6 | clear: 'ניקוי', | ||
7 | highlight: 'סימון', | ||
8 | options: 'אפשרויות צבע', | ||
9 | selected: 'בחירה', | ||
10 | title: 'בחירת צבע' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/hi.js b/sources/plugins/colordialog/lang/hi.js new file mode 100644 index 00000000..fc383287 --- /dev/null +++ b/sources/plugins/colordialog/lang/hi.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'hi', { | ||
6 | clear: 'Clear', // MISSING | ||
7 | highlight: 'Highlight', // MISSING | ||
8 | options: 'Color Options', // MISSING | ||
9 | selected: 'Selected Color', // MISSING | ||
10 | title: 'Select color' // MISSING | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/hr.js b/sources/plugins/colordialog/lang/hr.js new file mode 100644 index 00000000..15ef17fc --- /dev/null +++ b/sources/plugins/colordialog/lang/hr.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'hr', { | ||
6 | clear: 'Očisti', | ||
7 | highlight: 'Istaknuto', | ||
8 | options: 'Opcije boje', | ||
9 | selected: 'Odabrana boja', | ||
10 | title: 'Odaberi boju' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/hu.js b/sources/plugins/colordialog/lang/hu.js new file mode 100644 index 00000000..69e75872 --- /dev/null +++ b/sources/plugins/colordialog/lang/hu.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'hu', { | ||
6 | clear: 'Ürítés', | ||
7 | highlight: 'Nagyítás', | ||
8 | options: 'Szín opciók', | ||
9 | selected: 'Kiválasztott', | ||
10 | title: 'Válasszon színt' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/id.js b/sources/plugins/colordialog/lang/id.js new file mode 100644 index 00000000..f85ddf90 --- /dev/null +++ b/sources/plugins/colordialog/lang/id.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'id', { | ||
6 | clear: 'Hapus', | ||
7 | highlight: 'Sorot', | ||
8 | options: 'Pilihan Warna', | ||
9 | selected: 'Warna Dipilih', | ||
10 | title: 'Pilih Warna' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/is.js b/sources/plugins/colordialog/lang/is.js new file mode 100644 index 00000000..2268c402 --- /dev/null +++ b/sources/plugins/colordialog/lang/is.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'is', { | ||
6 | clear: 'Clear', // MISSING | ||
7 | highlight: 'Highlight', // MISSING | ||
8 | options: 'Color Options', // MISSING | ||
9 | selected: 'Selected Color', // MISSING | ||
10 | title: 'Select color' // MISSING | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/it.js b/sources/plugins/colordialog/lang/it.js new file mode 100644 index 00000000..e4a2956b --- /dev/null +++ b/sources/plugins/colordialog/lang/it.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'it', { | ||
6 | clear: 'cancella', | ||
7 | highlight: 'Evidenzia', | ||
8 | options: 'Opzioni colore', | ||
9 | selected: 'Seleziona il colore', | ||
10 | title: 'Selezionare il colore' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/ja.js b/sources/plugins/colordialog/lang/ja.js new file mode 100644 index 00000000..33f92053 --- /dev/null +++ b/sources/plugins/colordialog/lang/ja.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'ja', { | ||
6 | clear: 'クリア', | ||
7 | highlight: 'ハイライト', | ||
8 | options: 'カラーオプション', | ||
9 | selected: '選択された色', | ||
10 | title: '色選択' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/ka.js b/sources/plugins/colordialog/lang/ka.js new file mode 100644 index 00000000..fd1f929f --- /dev/null +++ b/sources/plugins/colordialog/lang/ka.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'ka', { | ||
6 | clear: 'გასუფთავება', | ||
7 | highlight: 'ჩვენება', | ||
8 | options: 'ფერის პარამეტრები', | ||
9 | selected: 'არჩეული ფერი', | ||
10 | title: 'ფერის შეცვლა' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/km.js b/sources/plugins/colordialog/lang/km.js new file mode 100644 index 00000000..7940f4eb --- /dev/null +++ b/sources/plugins/colordialog/lang/km.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'km', { | ||
6 | clear: 'សម្អាត', | ||
7 | highlight: 'បន្លិចពណ៌', | ||
8 | options: 'ជម្រើសពណ៌', | ||
9 | selected: 'ពណ៌ដែលបានរើស', | ||
10 | title: 'រើសពណ៌' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/ko.js b/sources/plugins/colordialog/lang/ko.js new file mode 100644 index 00000000..ff19a6ae --- /dev/null +++ b/sources/plugins/colordialog/lang/ko.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'ko', { | ||
6 | clear: '비우기', | ||
7 | highlight: '강조', | ||
8 | options: '색상 옵션', | ||
9 | selected: '선택된 색상', | ||
10 | title: '색상 선택' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/ku.js b/sources/plugins/colordialog/lang/ku.js new file mode 100644 index 00000000..bbe1d1f1 --- /dev/null +++ b/sources/plugins/colordialog/lang/ku.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'ku', { | ||
6 | clear: 'پاکیکەوە', | ||
7 | highlight: 'نیشانکردن', | ||
8 | options: 'هەڵبژاردەی ڕەنگەکان', | ||
9 | selected: 'ڕەنگی هەڵبژێردراو', | ||
10 | title: 'هەڵبژاردنی ڕەنگ' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/lt.js b/sources/plugins/colordialog/lang/lt.js new file mode 100644 index 00000000..817b6e2d --- /dev/null +++ b/sources/plugins/colordialog/lang/lt.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'lt', { | ||
6 | clear: 'Išvalyti', | ||
7 | highlight: 'Paryškinti', | ||
8 | options: 'Spalvos nustatymai', | ||
9 | selected: 'Pasirinkta spalva', | ||
10 | title: 'Pasirinkite spalvą' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/lv.js b/sources/plugins/colordialog/lang/lv.js new file mode 100644 index 00000000..6dc35d38 --- /dev/null +++ b/sources/plugins/colordialog/lang/lv.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'lv', { | ||
6 | clear: 'Notīrīt', | ||
7 | highlight: 'Paraugs', | ||
8 | options: 'Krāsas uzstādījumi', | ||
9 | selected: 'Izvēlētā krāsa', | ||
10 | title: 'Izvēlies krāsu' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/mk.js b/sources/plugins/colordialog/lang/mk.js new file mode 100644 index 00000000..6981f12f --- /dev/null +++ b/sources/plugins/colordialog/lang/mk.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'mk', { | ||
6 | clear: 'Clear', // MISSING | ||
7 | highlight: 'Highlight', // MISSING | ||
8 | options: 'Color Options', // MISSING | ||
9 | selected: 'Selected Color', // MISSING | ||
10 | title: 'Select color' // MISSING | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/mn.js b/sources/plugins/colordialog/lang/mn.js new file mode 100644 index 00000000..6ad3bc95 --- /dev/null +++ b/sources/plugins/colordialog/lang/mn.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'mn', { | ||
6 | clear: 'Clear', // MISSING | ||
7 | highlight: 'Highlight', // MISSING | ||
8 | options: 'Color Options', // MISSING | ||
9 | selected: 'Selected Color', // MISSING | ||
10 | title: 'Select color' // MISSING | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/ms.js b/sources/plugins/colordialog/lang/ms.js new file mode 100644 index 00000000..6978496e --- /dev/null +++ b/sources/plugins/colordialog/lang/ms.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'ms', { | ||
6 | clear: 'Clear', // MISSING | ||
7 | highlight: 'Highlight', // MISSING | ||
8 | options: 'Color Options', // MISSING | ||
9 | selected: 'Selected Color', // MISSING | ||
10 | title: 'Select color' // MISSING | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/nb.js b/sources/plugins/colordialog/lang/nb.js new file mode 100644 index 00000000..8d6daded --- /dev/null +++ b/sources/plugins/colordialog/lang/nb.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'nb', { | ||
6 | clear: 'Tøm', | ||
7 | highlight: 'Merk', | ||
8 | options: 'Alternativer for farge', | ||
9 | selected: 'Valgt farge', | ||
10 | title: 'Velg farge' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/nl.js b/sources/plugins/colordialog/lang/nl.js new file mode 100644 index 00000000..2cd70ae3 --- /dev/null +++ b/sources/plugins/colordialog/lang/nl.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'nl', { | ||
6 | clear: 'Wissen', | ||
7 | highlight: 'Actief', | ||
8 | options: 'Kleuropties', | ||
9 | selected: 'Geselecteerde kleur', | ||
10 | title: 'Selecteer kleur' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/no.js b/sources/plugins/colordialog/lang/no.js new file mode 100644 index 00000000..6471eeb8 --- /dev/null +++ b/sources/plugins/colordialog/lang/no.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'no', { | ||
6 | clear: 'Tøm', | ||
7 | highlight: 'Merk', | ||
8 | options: 'Alternativer for farge', | ||
9 | selected: 'Valgt', | ||
10 | title: 'Velg farge' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/pl.js b/sources/plugins/colordialog/lang/pl.js new file mode 100644 index 00000000..14d7bb4c --- /dev/null +++ b/sources/plugins/colordialog/lang/pl.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'pl', { | ||
6 | clear: 'Wyczyść', | ||
7 | highlight: 'Zaznacz', | ||
8 | options: 'Opcje koloru', | ||
9 | selected: 'Wybrany', | ||
10 | title: 'Wybierz kolor' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/pt-br.js b/sources/plugins/colordialog/lang/pt-br.js new file mode 100644 index 00000000..8c0da026 --- /dev/null +++ b/sources/plugins/colordialog/lang/pt-br.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'pt-br', { | ||
6 | clear: 'Limpar', | ||
7 | highlight: 'Grifar', | ||
8 | options: 'Opções de Cor', | ||
9 | selected: 'Cor Selecionada', | ||
10 | title: 'Selecione uma Cor' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/pt.js b/sources/plugins/colordialog/lang/pt.js new file mode 100644 index 00000000..87005218 --- /dev/null +++ b/sources/plugins/colordialog/lang/pt.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'pt', { | ||
6 | clear: 'Limpar', | ||
7 | highlight: 'Realçar', | ||
8 | options: 'Opções de cor', | ||
9 | selected: 'Cor selecionada', | ||
10 | title: 'Selecionar cor' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/ro.js b/sources/plugins/colordialog/lang/ro.js new file mode 100644 index 00000000..ce326ed9 --- /dev/null +++ b/sources/plugins/colordialog/lang/ro.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'ro', { | ||
6 | clear: 'Clear', // MISSING | ||
7 | highlight: 'Highlight', // MISSING | ||
8 | options: 'Color Options', // MISSING | ||
9 | selected: 'Selected Color', // MISSING | ||
10 | title: 'Select color' // MISSING | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/ru.js b/sources/plugins/colordialog/lang/ru.js new file mode 100644 index 00000000..f491a789 --- /dev/null +++ b/sources/plugins/colordialog/lang/ru.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'ru', { | ||
6 | clear: 'Очистить', | ||
7 | highlight: 'Под курсором', | ||
8 | options: 'Настройки цвета', | ||
9 | selected: 'Выбранный цвет', | ||
10 | title: 'Выберите цвет' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/si.js b/sources/plugins/colordialog/lang/si.js new file mode 100644 index 00000000..ac833bb8 --- /dev/null +++ b/sources/plugins/colordialog/lang/si.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'si', { | ||
6 | clear: 'පැහැදිලි', | ||
7 | highlight: 'මතුකර පෙන්වන්න', | ||
8 | options: 'වර්ණ විකල්ප', | ||
9 | selected: 'තෙරු වර්ණ', | ||
10 | title: 'වර්ණ තෝරන්න' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/sk.js b/sources/plugins/colordialog/lang/sk.js new file mode 100644 index 00000000..47afd9a7 --- /dev/null +++ b/sources/plugins/colordialog/lang/sk.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'sk', { | ||
6 | clear: 'Vyčistiť', | ||
7 | highlight: 'Zvýrazniť', | ||
8 | options: 'Možnosti farby', | ||
9 | selected: 'Vybraná farba', | ||
10 | title: 'Vyberte farbu' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/sl.js b/sources/plugins/colordialog/lang/sl.js new file mode 100644 index 00000000..9ced88ab --- /dev/null +++ b/sources/plugins/colordialog/lang/sl.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'sl', { | ||
6 | clear: 'Počisti', | ||
7 | highlight: 'Poudarjeno', | ||
8 | options: 'Barvne Možnosti', | ||
9 | selected: 'Izbrano', | ||
10 | title: 'Izberi barvo' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/sq.js b/sources/plugins/colordialog/lang/sq.js new file mode 100644 index 00000000..292da900 --- /dev/null +++ b/sources/plugins/colordialog/lang/sq.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'sq', { | ||
6 | clear: 'Pastro', | ||
7 | highlight: 'Thekso', | ||
8 | options: 'Përzgjedhjet e Ngjyrave', | ||
9 | selected: 'Ngjyra e Përzgjedhur', | ||
10 | title: 'Përzgjidh një ngjyrë' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/sr-latn.js b/sources/plugins/colordialog/lang/sr-latn.js new file mode 100644 index 00000000..01498cec --- /dev/null +++ b/sources/plugins/colordialog/lang/sr-latn.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'sr-latn', { | ||
6 | clear: 'Clear', // MISSING | ||
7 | highlight: 'Highlight', // MISSING | ||
8 | options: 'Color Options', // MISSING | ||
9 | selected: 'Selected Color', // MISSING | ||
10 | title: 'Select color' // MISSING | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/sr.js b/sources/plugins/colordialog/lang/sr.js new file mode 100644 index 00000000..d6167876 --- /dev/null +++ b/sources/plugins/colordialog/lang/sr.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'sr', { | ||
6 | clear: 'Clear', // MISSING | ||
7 | highlight: 'Highlight', // MISSING | ||
8 | options: 'Color Options', // MISSING | ||
9 | selected: 'Selected Color', // MISSING | ||
10 | title: 'Select color' // MISSING | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/sv.js b/sources/plugins/colordialog/lang/sv.js new file mode 100644 index 00000000..1ffc3d89 --- /dev/null +++ b/sources/plugins/colordialog/lang/sv.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'sv', { | ||
6 | clear: 'Rensa', | ||
7 | highlight: 'Markera', | ||
8 | options: 'Färgalternativ', | ||
9 | selected: 'Vald färg', | ||
10 | title: 'Välj färg' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/th.js b/sources/plugins/colordialog/lang/th.js new file mode 100644 index 00000000..7ac87873 --- /dev/null +++ b/sources/plugins/colordialog/lang/th.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'th', { | ||
6 | clear: 'Clear', // MISSING | ||
7 | highlight: 'Highlight', // MISSING | ||
8 | options: 'Color Options', // MISSING | ||
9 | selected: 'Selected Color', // MISSING | ||
10 | title: 'Select color' // MISSING | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/tr.js b/sources/plugins/colordialog/lang/tr.js new file mode 100644 index 00000000..02d3bc81 --- /dev/null +++ b/sources/plugins/colordialog/lang/tr.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'tr', { | ||
6 | clear: 'Temizle', | ||
7 | highlight: 'İşaretle', | ||
8 | options: 'Renk Seçenekleri', | ||
9 | selected: 'Seçilmiş', | ||
10 | title: 'Renk seç' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/tt.js b/sources/plugins/colordialog/lang/tt.js new file mode 100644 index 00000000..cf443883 --- /dev/null +++ b/sources/plugins/colordialog/lang/tt.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'tt', { | ||
6 | clear: 'Бушату', | ||
7 | highlight: 'Билгеләү', | ||
8 | options: 'Төс көйләүләре', | ||
9 | selected: 'Сайланган төсләр', | ||
10 | title: 'Төс сайлау' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/ug.js b/sources/plugins/colordialog/lang/ug.js new file mode 100644 index 00000000..4a656ebf --- /dev/null +++ b/sources/plugins/colordialog/lang/ug.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'ug', { | ||
6 | clear: 'تازىلا', | ||
7 | highlight: 'يورۇت', | ||
8 | options: 'رەڭ تاللانمىسى', | ||
9 | selected: 'رەڭ تاللاڭ', | ||
10 | title: 'رەڭ تاللاڭ' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/uk.js b/sources/plugins/colordialog/lang/uk.js new file mode 100644 index 00000000..ff6ef752 --- /dev/null +++ b/sources/plugins/colordialog/lang/uk.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'uk', { | ||
6 | clear: 'Очистити', | ||
7 | highlight: 'Колір, на який вказує курсор', | ||
8 | options: 'Опції кольорів', | ||
9 | selected: 'Обраний колір', | ||
10 | title: 'Обрати колір' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/vi.js b/sources/plugins/colordialog/lang/vi.js new file mode 100644 index 00000000..d04a2dd3 --- /dev/null +++ b/sources/plugins/colordialog/lang/vi.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'vi', { | ||
6 | clear: 'Xóa bỏ', | ||
7 | highlight: 'Màu chọn', | ||
8 | options: 'Tùy chọn màu', | ||
9 | selected: 'Màu đã chọn', | ||
10 | title: 'Chọn màu' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/zh-cn.js b/sources/plugins/colordialog/lang/zh-cn.js new file mode 100644 index 00000000..57083a4d --- /dev/null +++ b/sources/plugins/colordialog/lang/zh-cn.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'zh-cn', { | ||
6 | clear: '清除', | ||
7 | highlight: '高亮', | ||
8 | options: '颜色选项', | ||
9 | selected: '选择颜色', | ||
10 | title: '选择颜色' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/lang/zh.js b/sources/plugins/colordialog/lang/zh.js new file mode 100644 index 00000000..d845a223 --- /dev/null +++ b/sources/plugins/colordialog/lang/zh.js | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'colordialog', 'zh', { | ||
6 | clear: '清除', | ||
7 | highlight: '高亮', | ||
8 | options: '色彩選項', | ||
9 | selected: '選取的色彩', | ||
10 | title: '選取色彩' | ||
11 | } ); | ||
diff --git a/sources/plugins/colordialog/plugin.js b/sources/plugins/colordialog/plugin.js new file mode 100644 index 00000000..57f59199 --- /dev/null +++ b/sources/plugins/colordialog/plugin.js | |||
@@ -0,0 +1,71 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.colordialog = { | ||
7 | requires: 'dialog', | ||
8 | // jscs:disable maximumLineLength | ||
9 | lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% | ||
10 | // jscs:enable maximumLineLength | ||
11 | init: function( editor ) { | ||
12 | var cmd = new CKEDITOR.dialogCommand( 'colordialog' ); | ||
13 | cmd.editorFocus = false; | ||
14 | |||
15 | editor.addCommand( 'colordialog', cmd ); | ||
16 | |||
17 | CKEDITOR.dialog.add( 'colordialog', this.path + 'dialogs/colordialog.js' ); | ||
18 | |||
19 | /** | ||
20 | * Open up color dialog and to receive the selected color. | ||
21 | * | ||
22 | * @param {Function} callback The callback when color dialog is closed | ||
23 | * @param {String} callback.color The color value received if selected on the dialog. | ||
24 | * @param [scope] The scope in which the callback will be bound. | ||
25 | * @member CKEDITOR.editor | ||
26 | */ | ||
27 | editor.getColorFromDialog = function( callback, scope ) { | ||
28 | var onClose = function( evt ) { | ||
29 | releaseHandlers( this ); | ||
30 | var color = evt.name == 'ok' ? this.getValueOf( 'picker', 'selectedColor' ) : null; | ||
31 | callback.call( scope, color ); | ||
32 | }; | ||
33 | var releaseHandlers = function( dialog ) { | ||
34 | dialog.removeListener( 'ok', onClose ); | ||
35 | dialog.removeListener( 'cancel', onClose ); | ||
36 | }; | ||
37 | var bindToDialog = function( dialog ) { | ||
38 | dialog.on( 'ok', onClose ); | ||
39 | dialog.on( 'cancel', onClose ); | ||
40 | }; | ||
41 | |||
42 | editor.execCommand( 'colordialog' ); | ||
43 | |||
44 | if ( editor._.storedDialogs && editor._.storedDialogs.colordialog ) | ||
45 | bindToDialog( editor._.storedDialogs.colordialog ); | ||
46 | else { | ||
47 | CKEDITOR.on( 'dialogDefinition', function( e ) { | ||
48 | if ( e.data.name != 'colordialog' ) | ||
49 | return; | ||
50 | |||
51 | var definition = e.data.definition; | ||
52 | |||
53 | e.removeListener(); | ||
54 | definition.onLoad = CKEDITOR.tools.override( definition.onLoad, | ||
55 | function( orginal ) { | ||
56 | return function() { | ||
57 | bindToDialog( this ); | ||
58 | definition.onLoad = orginal; | ||
59 | if ( typeof orginal == 'function' ) | ||
60 | orginal.call( this ); | ||
61 | }; | ||
62 | } ); | ||
63 | } ); | ||
64 | } | ||
65 | }; | ||
66 | |||
67 | |||
68 | } | ||
69 | }; | ||
70 | |||
71 | CKEDITOR.plugins.add( 'colordialog', CKEDITOR.plugins.colordialog ); | ||