diff options
Diffstat (limited to 'sources/plugins/sourcearea')
-rw-r--r-- | sources/plugins/sourcearea/lang/es-mx.js | 7 | ||||
-rw-r--r-- | sources/plugins/sourcearea/plugin.js | 8 |
2 files changed, 11 insertions, 4 deletions
diff --git a/sources/plugins/sourcearea/lang/es-mx.js b/sources/plugins/sourcearea/lang/es-mx.js new file mode 100644 index 0000000..6dc6469 --- /dev/null +++ b/sources/plugins/sourcearea/lang/es-mx.js | |||
@@ -0,0 +1,7 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'sourcearea', 'es-mx', { | ||
6 | toolbar: 'Fuente' | ||
7 | } ); | ||
diff --git a/sources/plugins/sourcearea/plugin.js b/sources/plugins/sourcearea/plugin.js index 837bc30..09745be 100644 --- a/sources/plugins/sourcearea/plugin.js +++ b/sources/plugins/sourcearea/plugin.js | |||
@@ -11,7 +11,7 @@ | |||
11 | ( function() { | 11 | ( function() { |
12 | CKEDITOR.plugins.add( 'sourcearea', { | 12 | CKEDITOR.plugins.add( 'sourcearea', { |
13 | // jscs:disable maximumLineLength | 13 | // jscs:disable maximumLineLength |
14 | lang: 'af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-ch,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,oc,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% | 14 | lang: 'af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-gb,eo,es,es-mx,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,oc,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% |
15 | // jscs:enable maximumLineLength | 15 | // jscs:enable maximumLineLength |
16 | icons: 'source,source-rtl', // %REMOVE_LINE_CORE% | 16 | icons: 'source,source-rtl', // %REMOVE_LINE_CORE% |
17 | hidpi: true, // %REMOVE_LINE_CORE% | 17 | hidpi: true, // %REMOVE_LINE_CORE% |
@@ -38,7 +38,7 @@ | |||
38 | CKEDITOR.tools.cssVendorPrefix( 'tab-size', editor.config.sourceAreaTabSize || 4 ) ) ); | 38 | CKEDITOR.tools.cssVendorPrefix( 'tab-size', editor.config.sourceAreaTabSize || 4 ) ) ); |
39 | 39 | ||
40 | // Make sure that source code is always displayed LTR, | 40 | // Make sure that source code is always displayed LTR, |
41 | // regardless of editor language (#10105). | 41 | // regardless of editor language (http://dev.ckeditor.com/ticket/10105). |
42 | textarea.setAttribute( 'dir', 'ltr' ); | 42 | textarea.setAttribute( 'dir', 'ltr' ); |
43 | 43 | ||
44 | textarea.addClass( 'cke_source' ).addClass( 'cke_reset' ).addClass( 'cke_enable_context_menu' ); | 44 | textarea.addClass( 'cke_source' ).addClass( 'cke_reset' ).addClass( 'cke_enable_context_menu' ); |
@@ -53,7 +53,7 @@ | |||
53 | // Having to make <textarea> fixed sized to conquer the following bugs: | 53 | // Having to make <textarea> fixed sized to conquer the following bugs: |
54 | // 1. The textarea height/width='100%' doesn't constraint to the 'td' in IE6/7. | 54 | // 1. The textarea height/width='100%' doesn't constraint to the 'td' in IE6/7. |
55 | // 2. Unexpected vertical-scrolling behavior happens whenever focus is moving out of editor | 55 | // 2. Unexpected vertical-scrolling behavior happens whenever focus is moving out of editor |
56 | // if text content within it has overflowed. (#4762) | 56 | // if text content within it has overflowed. (http://dev.ckeditor.com/ticket/4762) |
57 | if ( CKEDITOR.env.ie ) { | 57 | if ( CKEDITOR.env.ie ) { |
58 | editable.attachListener( editor, 'resize', onResize, editable ); | 58 | editable.attachListener( editor, 'resize', onResize, editable ); |
59 | editable.attachListener( CKEDITOR.document.getWindow(), 'resize', onResize, editable ); | 59 | editable.attachListener( CKEDITOR.document.getWindow(), 'resize', onResize, editable ); |
@@ -83,7 +83,7 @@ | |||
83 | 83 | ||
84 | function onResize() { | 84 | function onResize() { |
85 | // We have to do something with focus on IE9, because if sourcearea had focus | 85 | // We have to do something with focus on IE9, because if sourcearea had focus |
86 | // before being resized, the caret ends somewhere in the editor UI (#11839). | 86 | // before being resized, the caret ends somewhere in the editor UI (http://dev.ckeditor.com/ticket/11839). |
87 | var wasActive = needsFocusHack && this.equals( CKEDITOR.document.getActive() ); | 87 | var wasActive = needsFocusHack && this.equals( CKEDITOR.document.getActive() ); |
88 | 88 | ||
89 | // Holder rectange size is stretched by textarea, | 89 | // Holder rectange size is stretched by textarea, |