]> git.immae.eu Git - perso/Immae/Projets/packagist/ludivine-ckeditor-component.git/blobdiff - sources/plugins/maximize/plugin.js
Update to 4.7.3
[perso/Immae/Projets/packagist/ludivine-ckeditor-component.git] / sources / plugins / maximize / plugin.js
index 16967a088c9b09a47777d95548f69b0be45119fd..fbce920b9bc7ffe1531a8b60a2f637ef0725c86c 100644 (file)
@@ -51,7 +51,7 @@
                }\r
 \r
                retval.inline = $element.style.cssText || '';\r
-               if ( !isInsideEditor ) // Reset any external styles that might interfere. (#2474)\r
+               if ( !isInsideEditor ) // Reset any external styles that might interfere. (http://dev.ckeditor.com/ticket/2474)\r
                $element.style.cssText = 'position: static; overflow: visible';\r
 \r
                restoreFormStyles( data );\r
                if ( editor.editable().isInline() )\r
                        return;\r
 \r
-               // Refresh all editor instances on the page (#5724).\r
+               // Refresh all editor instances on the page (http://dev.ckeditor.com/ticket/5724).\r
                var all = CKEDITOR.instances;\r
                for ( var i in all ) {\r
                        var one = all[ i ];\r
                        if ( one.mode == 'wysiwyg' && !one.readOnly ) {\r
                                var body = one.document.getBody();\r
                                // Refresh 'contentEditable' otherwise\r
-                               // DOM lifting breaks design mode. (#5560)\r
+                               // DOM lifting breaks design mode. (http://dev.ckeditor.com/ticket/5560)\r
                                body.setAttribute( 'contentEditable', false );\r
                                body.setAttribute( 'contentEditable', true );\r
                        }\r
@@ -93,7 +93,7 @@
 \r
        CKEDITOR.plugins.add( 'maximize', {\r
                // jscs:disable maximumLineLength\r
-               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%\r
+               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%\r
                // jscs:enable maximumLineLength\r
                icons: 'maximize', // %REMOVE_LINE_CORE%\r
                hidpi: true, // %REMOVE_LINE_CORE%\r
                        var savedState = CKEDITOR.TRISTATE_OFF;\r
 \r
                        editor.addCommand( 'maximize', {\r
-                               // Disabled on iOS (#8307).\r
+                               // Disabled on iOS (http://dev.ckeditor.com/ticket/8307).\r
                                modes: { wysiwyg: !CKEDITOR.env.iOS, source: !CKEDITOR.env.iOS },\r
                                readOnly: 1,\r
                                editorFocus: false,\r
 \r
                                                // Hide scroll bars.\r
                                                var styles = {\r
-                                                       overflow: CKEDITOR.env.webkit ? '' : 'hidden', // #6896\r
+                                                       overflow: CKEDITOR.env.webkit ? '' : 'hidden', // http://dev.ckeditor.com/ticket/6896\r
                                                        width: 0,\r
                                                        height: 0\r
                                                };\r
                                                !CKEDITOR.env.gecko && mainDocument.getDocumentElement().setStyle( 'position', 'fixed' );\r
                                                !( CKEDITOR.env.gecko && CKEDITOR.env.quirks ) && mainDocument.getBody().setStyles( styles );\r
 \r
-                                               // Scroll to the top left (IE needs some time for it - #4923).\r
+                                               // Scroll to the top left (IE needs some time for it - http://dev.ckeditor.com/ticket/4923).\r
                                                CKEDITOR.env.ie ? setTimeout( function() {\r
                                                        mainWindow.$.scrollTo( 0, 0 );\r
                                                }, 0 ) : mainWindow.$.scrollTo( 0, 0 );\r
 \r
                                                // Resize and move to top left.\r
-                                               // Special treatment for FF Quirks (#7284)\r
+                                               // Special treatment for FF Quirks (http://dev.ckeditor.com/ticket/7284)\r
                                                container.setStyle( 'position', CKEDITOR.env.gecko && CKEDITOR.env.quirks ? 'fixed' : 'absolute' );\r
-                                               container.$.offsetLeft; // SAFARI BUG: See #2066.\r
+                                               container.$.offsetLeft; // SAFARI BUG: See http://dev.ckeditor.com/ticket/2066.\r
                                                container.setStyles( {\r
                                                        // Show under floatpanels (-1) and context menu (-2).\r
                                                        'z-index': editor.config.baseFloatZIndex - 5,\r
                                                        top: '0px'\r
                                                } );\r
 \r
-                                               // Add cke_maximized class before resize handle since that will change things sizes (#5580)\r
+                                               // Add cke_maximized class before resize handle since that will change things sizes (http://dev.ckeditor.com/ticket/5580)\r
                                                container.addClass( 'cke_maximized' );\r
 \r
                                                resizeHandler();\r
 \r
-                                               // Still not top left? Fix it. (Bug #174)\r
+                                               // Still not top left? Fix it. (Bug http://dev.ckeditor.com/ticket/174)\r
                                                var offset = container.getDocumentPosition();\r
                                                container.setStyles( {\r
                                                        left: ( -1 * offset.x ) + 'px',\r
                                                        top: ( -1 * offset.y ) + 'px'\r
                                                } );\r
 \r
-                                               // Fixing positioning editor chrome in Firefox break design mode. (#5149)\r
+                                               // Fixing positioning editor chrome in Firefox break design mode. (http://dev.ckeditor.com/ticket/5149)\r
                                                CKEDITOR.env.gecko && refreshCursor( editor );\r
                                        }\r
                                        // Restore from fullscreen if the state is on.\r
                                                // Remove cke_maximized class.\r
                                                container.removeClass( 'cke_maximized' );\r
 \r
-                                               // Webkit requires a re-layout on editor chrome. (#6695)\r
+                                               // Webkit requires a re-layout on editor chrome. (http://dev.ckeditor.com/ticket/6695)\r
                                                if ( CKEDITOR.env.webkit ) {\r
                                                        container.setStyle( 'display', 'inline' );\r
                                                        setTimeout( function() {\r
 \r
                                        // Toggle button label.\r
                                        var button = this.uiItems[ 0 ];\r
-                                       // Only try to change the button if it exists (#6166)\r
+                                       // Only try to change the button if it exists (http://dev.ckeditor.com/ticket/6166)\r
                                        if ( button ) {\r
                                                var label = ( this.state == CKEDITOR.TRISTATE_OFF ) ? lang.maximize.maximize : lang.maximize.minimize;\r
                                                var buttonNode = CKEDITOR.document.getById( button._.id );\r
                                        // Restore selection and scroll position in editing area.\r
                                        if ( editor.mode == 'wysiwyg' ) {\r
                                                if ( savedSelection ) {\r
-                                                       // Fixing positioning editor chrome in Firefox break design mode. (#5149)\r
+                                                       // Fixing positioning editor chrome in Firefox break design mode. (http://dev.ckeditor.com/ticket/5149)\r
                                                        CKEDITOR.env.gecko && refreshCursor( editor );\r
 \r
                                                        editor.getSelection().selectRanges( savedSelection );\r
                                toolbar: 'tools,10'\r
                        } );\r
 \r
-                       // Restore the command state after mode change, unless it has been changed to disabled (#6467)\r
+                       // Restore the command state after mode change, unless it has been changed to disabled (http://dev.ckeditor.com/ticket/6467)\r
                        editor.on( 'mode', function() {\r
                                var command = editor.getCommand( 'maximize' );\r
                                command.setState( command.state == CKEDITOR.TRISTATE_DISABLED ? CKEDITOR.TRISTATE_DISABLED : savedState );\r