Ticket #2997: 2997.patch
File 2997.patch, 2.7 KB (added by , 15 years ago) |
---|
-
_source/lang/en.js
85 85 advancedTab : 'Advanced', 86 86 validateNumberFailed : 'This value is not a number.', 87 87 confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', 88 confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?' 88 confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', 89 panelLoading : 'Loading...' 89 90 }, 90 91 91 92 // Special char dialog. -
_source/plugins/panel/plugin.js
108 108 { 109 109 if ( this.forceIFrame || this.css.length ) 110 110 { 111 var iframe = this.document.getById( 'cke_' + this.id + '_frame' ); 112 var doc = new CKEDITOR.dom.document( iframe.$.contentWindow.document ); 113 111 var loadingMsg = '', 112 iframe = this.document.getById( 'cke_' + this.id + '_frame' ), 113 doc = new CKEDITOR.dom.document( iframe.$.contentWindow.document ); 114 115 // Get the loading message. 116 for ( var instanceName in CKEDITOR.instances ) 117 { 118 if ( CKEDITOR.instances[ instanceName ].lang ) 119 { 120 loadingMsg = CKEDITOR.instances[ instanceName ].lang.common.panelLoading; 121 break; 122 } 123 } 124 114 125 // Initialize the IFRAME document body. 115 126 doc.$.open(); 116 127 doc.$.write( … … 120 131 '<link type="text/css" rel=stylesheet href="' + this.css.join( '"><link type="text/css" rel="stylesheet" href="' ) + '">' + 121 132 '</head>' + 122 133 '<body class="cke_panel_frame" style="margin:0;padding:0">' + 134 '<div id="cke_' + this.id + '_loader" style="padding:5px">' + loadingMsg + '</div>' + 135 '<div id="cke_' + this.id + '_content" style="display:none"></div>' + 123 136 '</body>' + 124 137 '<\/html>' ); 125 138 doc.$.close(); 126 139 127 140 var win = doc.getWindow(); 128 141 129 142 // Register the CKEDITOR global. … … 131 144 132 145 win.on( 'load', function( ev ) 133 146 { 147 doc.getById( 'cke_' + this.id + '_loader' ).setStyle( 'display', 'none' ); 148 doc.getById( 'cke_' + this.id + '_content' ).setStyle( 'display', 'block' ); 134 149 this.isLoaded = true; 135 150 if ( this.onLoad ) 136 151 this.onLoad(); 137 152 }, 138 153 this); 139 154 140 holder = doc.getB ody();155 holder = doc.getById( 'cke_' + this.id + '_content' ); 141 156 } 142 157 else 143 158 holder = this.document.getById( 'cke_' + this.id );