From 1794320dcfdfcd19572fb1676294f9853a6bbc20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Mon, 4 Dec 2017 18:55:29 +0100 Subject: Update to 4.7.3 --- sources/plugins/maximize/lang/es-mx.js | 8 ++++++++ sources/plugins/maximize/plugin.js | 32 ++++++++++++++++---------------- 2 files changed, 24 insertions(+), 16 deletions(-) create mode 100644 sources/plugins/maximize/lang/es-mx.js (limited to 'sources/plugins/maximize') diff --git a/sources/plugins/maximize/lang/es-mx.js b/sources/plugins/maximize/lang/es-mx.js new file mode 100644 index 0000000..f47486c --- /dev/null +++ b/sources/plugins/maximize/lang/es-mx.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'maximize', 'es-mx', { + maximize: 'Maximizar', + minimize: 'Minimizar' +} ); diff --git a/sources/plugins/maximize/plugin.js b/sources/plugins/maximize/plugin.js index 16967a0..fbce920 100644 --- a/sources/plugins/maximize/plugin.js +++ b/sources/plugins/maximize/plugin.js @@ -51,7 +51,7 @@ } retval.inline = $element.style.cssText || ''; - if ( !isInsideEditor ) // Reset any external styles that might interfere. (#2474) + if ( !isInsideEditor ) // Reset any external styles that might interfere. (http://dev.ckeditor.com/ticket/2474) $element.style.cssText = 'position: static; overflow: visible'; restoreFormStyles( data ); @@ -72,14 +72,14 @@ if ( editor.editable().isInline() ) return; - // Refresh all editor instances on the page (#5724). + // Refresh all editor instances on the page (http://dev.ckeditor.com/ticket/5724). var all = CKEDITOR.instances; for ( var i in all ) { var one = all[ i ]; if ( one.mode == 'wysiwyg' && !one.readOnly ) { var body = one.document.getBody(); // Refresh 'contentEditable' otherwise - // DOM lifting breaks design mode. (#5560) + // DOM lifting breaks design mode. (http://dev.ckeditor.com/ticket/5560) body.setAttribute( 'contentEditable', false ); body.setAttribute( 'contentEditable', true ); } @@ -93,7 +93,7 @@ CKEDITOR.plugins.add( 'maximize', { // jscs:disable maximumLineLength - 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% + 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% // jscs:enable maximumLineLength icons: 'maximize', // %REMOVE_LINE_CORE% hidpi: true, // %REMOVE_LINE_CORE% @@ -122,7 +122,7 @@ var savedState = CKEDITOR.TRISTATE_OFF; editor.addCommand( 'maximize', { - // Disabled on iOS (#8307). + // Disabled on iOS (http://dev.ckeditor.com/ticket/8307). modes: { wysiwyg: !CKEDITOR.env.iOS, source: !CKEDITOR.env.iOS }, readOnly: 1, editorFocus: false, @@ -163,7 +163,7 @@ // Hide scroll bars. var styles = { - overflow: CKEDITOR.env.webkit ? '' : 'hidden', // #6896 + overflow: CKEDITOR.env.webkit ? '' : 'hidden', // http://dev.ckeditor.com/ticket/6896 width: 0, height: 0 }; @@ -172,15 +172,15 @@ !CKEDITOR.env.gecko && mainDocument.getDocumentElement().setStyle( 'position', 'fixed' ); !( CKEDITOR.env.gecko && CKEDITOR.env.quirks ) && mainDocument.getBody().setStyles( styles ); - // Scroll to the top left (IE needs some time for it - #4923). + // Scroll to the top left (IE needs some time for it - http://dev.ckeditor.com/ticket/4923). CKEDITOR.env.ie ? setTimeout( function() { mainWindow.$.scrollTo( 0, 0 ); }, 0 ) : mainWindow.$.scrollTo( 0, 0 ); // Resize and move to top left. - // Special treatment for FF Quirks (#7284) + // Special treatment for FF Quirks (http://dev.ckeditor.com/ticket/7284) container.setStyle( 'position', CKEDITOR.env.gecko && CKEDITOR.env.quirks ? 'fixed' : 'absolute' ); - container.$.offsetLeft; // SAFARI BUG: See #2066. + container.$.offsetLeft; // SAFARI BUG: See http://dev.ckeditor.com/ticket/2066. container.setStyles( { // Show under floatpanels (-1) and context menu (-2). 'z-index': editor.config.baseFloatZIndex - 5, @@ -188,19 +188,19 @@ top: '0px' } ); - // Add cke_maximized class before resize handle since that will change things sizes (#5580) + // Add cke_maximized class before resize handle since that will change things sizes (http://dev.ckeditor.com/ticket/5580) container.addClass( 'cke_maximized' ); resizeHandler(); - // Still not top left? Fix it. (Bug #174) + // Still not top left? Fix it. (Bug http://dev.ckeditor.com/ticket/174) var offset = container.getDocumentPosition(); container.setStyles( { left: ( -1 * offset.x ) + 'px', top: ( -1 * offset.y ) + 'px' } ); - // Fixing positioning editor chrome in Firefox break design mode. (#5149) + // Fixing positioning editor chrome in Firefox break design mode. (http://dev.ckeditor.com/ticket/5149) CKEDITOR.env.gecko && refreshCursor( editor ); } // Restore from fullscreen if the state is on. @@ -229,7 +229,7 @@ // Remove cke_maximized class. container.removeClass( 'cke_maximized' ); - // Webkit requires a re-layout on editor chrome. (#6695) + // Webkit requires a re-layout on editor chrome. (http://dev.ckeditor.com/ticket/6695) if ( CKEDITOR.env.webkit ) { container.setStyle( 'display', 'inline' ); setTimeout( function() { @@ -250,7 +250,7 @@ // Toggle button label. var button = this.uiItems[ 0 ]; - // Only try to change the button if it exists (#6166) + // Only try to change the button if it exists (http://dev.ckeditor.com/ticket/6166) if ( button ) { var label = ( this.state == CKEDITOR.TRISTATE_OFF ) ? lang.maximize.maximize : lang.maximize.minimize; var buttonNode = CKEDITOR.document.getById( button._.id ); @@ -262,7 +262,7 @@ // Restore selection and scroll position in editing area. if ( editor.mode == 'wysiwyg' ) { if ( savedSelection ) { - // Fixing positioning editor chrome in Firefox break design mode. (#5149) + // Fixing positioning editor chrome in Firefox break design mode. (http://dev.ckeditor.com/ticket/5149) CKEDITOR.env.gecko && refreshCursor( editor ); editor.getSelection().selectRanges( savedSelection ); @@ -294,7 +294,7 @@ toolbar: 'tools,10' } ); - // Restore the command state after mode change, unless it has been changed to disabled (#6467) + // Restore the command state after mode change, unless it has been changed to disabled (http://dev.ckeditor.com/ticket/6467) editor.on( 'mode', function() { var command = editor.getCommand( 'maximize' ); command.setState( command.state == CKEDITOR.TRISTATE_DISABLED ? CKEDITOR.TRISTATE_DISABLED : savedState ); -- cgit v1.2.3