Ticket #2017: 2017.patch
File 2017.patch, 2.6 KB (added by , 16 years ago) |
---|
-
_test/manual/fckeditorapi/test1.html
46 46 var iCount = 0 ; 47 47 var sInstances = '' ; 48 48 49 for ( var s in FCKeditorAPI. __Instances )49 for ( var s in FCKeditorAPI.Instances ) 50 50 { 51 51 iCount++ ; 52 52 -
_whatsnew.html
37 37 <p> 38 38 New Features and Improvements:</p> 39 39 <ul> 40 <li></li> 40 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2017">#2017</a>] The FCKeditorAPI.Instances 41 object can now be used to access all FCKeditor instances available in the page.</li> 41 42 </ul> 42 43 <p> 43 44 Fixed Bugs:</p> -
editor/_source/fckeditorapi.js
42 42 'window.FCKeditorAPI = {' + 43 43 'Version : "[Development]",' + 44 44 'VersionBuild : "[DEV]",' + 45 ' __Instances : new Object(),' +45 'Instances : new Object(),' + 46 46 47 47 'GetInstance : function( name )' + 48 48 '{' + 49 'return this. __Instances[ name ];' +49 'return this.Instances[ name ];' + 50 50 '},' + 51 51 52 52 '_FormSubmit : function()' + 53 53 '{' + 54 'for ( var name in FCKeditorAPI. __Instances )' +54 'for ( var name in FCKeditorAPI.Instances )' + 55 55 '{' + 56 'var oEditor = FCKeditorAPI. __Instances[ name ] ;' +56 'var oEditor = FCKeditorAPI.Instances[ name ] ;' + 57 57 'if ( oEditor.GetParentForm && oEditor.GetParentForm() == this )' + 58 58 'oEditor.UpdateLinkedField() ;' + 59 59 '}' + … … 129 129 } 130 130 131 131 FCKeditorAPI = oParentWindow.FCKeditorAPI ; 132 133 // The __Instances properly has been changed to the public Instances, 134 // but we should still have the "deprecated" version of it. 135 FCKeditorAPI.__Instances = FCKeditorAPI.Instances ; 132 136 } 133 137 134 138 // Add the current instance to the FCKeditorAPI's instances collection. 135 FCKeditorAPI. __Instances[ FCK.Name ] = FCK ;139 FCKeditorAPI.Instances[ FCK.Name ] = FCK ; 136 140 } 137 141 138 142 // Attach to the form onsubmit event and to the form.submit(). … … 162 166 { 163 167 if ( ! window.FCKUnloadFlag ) 164 168 return ; 165 delete FCKeditorAPI. __Instances[ FCK.Name ] ;169 delete FCKeditorAPI.Instances[ FCK.Name ] ; 166 170 } 167 171 function FCKeditorAPI_ConfirmCleanup() 168 172 {