diff options
Diffstat (limited to 'sources/plugins/button')
-rw-r--r-- | sources/plugins/button/lang/es-mx.js | 8 | ||||
-rw-r--r-- | sources/plugins/button/lang/hr.js | 8 | ||||
-rw-r--r-- | sources/plugins/button/plugin.js | 10 |
3 files changed, 21 insertions, 5 deletions
diff --git a/sources/plugins/button/lang/es-mx.js b/sources/plugins/button/lang/es-mx.js new file mode 100644 index 0000000..3b1b47b --- /dev/null +++ b/sources/plugins/button/lang/es-mx.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'es-mx', { | ||
7 | selectedLabel: '%1 (Seleccionado)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/lang/hr.js b/sources/plugins/button/lang/hr.js new file mode 100644 index 0000000..031f8f5 --- /dev/null +++ b/sources/plugins/button/lang/hr.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | CKEDITOR.plugins.setLang( 'button', 'hr', { | ||
7 | selectedLabel: '%1 (Odabrano)' | ||
8 | } ); | ||
diff --git a/sources/plugins/button/plugin.js b/sources/plugins/button/plugin.js index 6d2db33..e91fa86 100644 --- a/sources/plugins/button/plugin.js +++ b/sources/plugins/button/plugin.js | |||
@@ -29,7 +29,7 @@ | |||
29 | 29 | ||
30 | template += ' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event);"' + | 30 | template += ' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event);"' + |
31 | ' onfocus="return CKEDITOR.tools.callFunction({focusFn},event);" ' + | 31 | ' onfocus="return CKEDITOR.tools.callFunction({focusFn},event);" ' + |
32 | ( CKEDITOR.env.ie ? 'onclick="return false;" onmouseup' : 'onclick' ) + // #188 | 32 | ( CKEDITOR.env.ie ? 'onclick="return false;" onmouseup' : 'onclick' ) + // http://dev.ckeditor.com/ticket/188 |
33 | '="CKEDITOR.tools.callFunction({clickFn},this);return false;">' + | 33 | '="CKEDITOR.tools.callFunction({clickFn},this);return false;">' + |
34 | '<span class="cke_button_icon cke_button__{iconName}_icon" style="{style}"'; | 34 | '<span class="cke_button_icon cke_button__{iconName}_icon" style="{style}"'; |
35 | 35 | ||
@@ -49,7 +49,7 @@ | |||
49 | btnTpl = CKEDITOR.addTemplate( 'button', template ); | 49 | btnTpl = CKEDITOR.addTemplate( 'button', template ); |
50 | 50 | ||
51 | CKEDITOR.plugins.add( 'button', { | 51 | CKEDITOR.plugins.add( 'button', { |
52 | lang: 'af,ar,az,bg,ca,cs,da,de,de-ch,el,en,en-gb,eo,es,eu,fa,fi,fr,gl,he,hu,id,it,ja,km,ko,ku,lt,nb,nl,no,oc,pl,pt,pt-br,ro,ru,sk,sl,sq,sv,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% | 52 | lang: 'af,ar,az,bg,ca,cs,da,de,de-ch,el,en,en-gb,eo,es,es-mx,eu,fa,fi,fr,gl,he,hr,hu,id,it,ja,km,ko,ku,lt,nb,nl,no,oc,pl,pt,pt-br,ro,ru,sk,sl,sq,sv,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% |
53 | beforeInit: function( editor ) { | 53 | beforeInit: function( editor ) { |
54 | editor.ui.addHandler( CKEDITOR.UI_BUTTON, CKEDITOR.ui.button.handler ); | 54 | editor.ui.addHandler( CKEDITOR.UI_BUTTON, CKEDITOR.ui.button.handler ); |
55 | } | 55 | } |
@@ -189,7 +189,7 @@ | |||
189 | } | 189 | } |
190 | instance.execute(); | 190 | instance.execute(); |
191 | 191 | ||
192 | // Fixed iOS focus issue when your press disabled button (#12381). | 192 | // Fixed iOS focus issue when your press disabled button (http://dev.ckeditor.com/ticket/12381). |
193 | if ( env.iOS ) { | 193 | if ( env.iOS ) { |
194 | editor.focus(); | 194 | editor.focus(); |
195 | } | 195 | } |
@@ -256,7 +256,7 @@ | |||
256 | var name = this.name || this.command, | 256 | var name = this.name || this.command, |
257 | iconName = name; | 257 | iconName = name; |
258 | 258 | ||
259 | // Check if we're pointing to an icon defined by another command. (#9555) | 259 | // Check if we're pointing to an icon defined by another command. (http://dev.ckeditor.com/ticket/9555) |
260 | if ( this.icon && !( /\./ ).test( this.icon ) ) { | 260 | if ( this.icon && !( /\./ ).test( this.icon ) ) { |
261 | iconName = this.icon; | 261 | iconName = this.icon; |
262 | this.icon = null; | 262 | this.icon = null; |
@@ -311,7 +311,7 @@ | |||
311 | element.removeAttribute( 'aria-disabled' ); | 311 | element.removeAttribute( 'aria-disabled' ); |
312 | 312 | ||
313 | if ( !this.hasArrow ) { | 313 | if ( !this.hasArrow ) { |
314 | // Note: aria-pressed attribute should not be added to menuButton instances. (#11331) | 314 | // Note: aria-pressed attribute should not be added to menuButton instances. (http://dev.ckeditor.com/ticket/11331) |
315 | state == CKEDITOR.TRISTATE_ON ? | 315 | state == CKEDITOR.TRISTATE_ON ? |
316 | element.setAttribute( 'aria-pressed', true ) : | 316 | element.setAttribute( 'aria-pressed', true ) : |
317 | element.removeAttribute( 'aria-pressed' ); | 317 | element.removeAttribute( 'aria-pressed' ); |