Changeset 1713
- Timestamp:
- 2008-03-18 09:19:19 (5 months ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 3 modified
-
editor/_source/fckeditorapi.js (modified) (3 diffs)
-
_test/manual/fckeditorapi/test1.html (modified) (1 diff)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/fckeditorapi.js
r1596 r1713 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() ;' + … … 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 … … 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() -
FCKeditor/trunk/_test/manual/fckeditorapi/test1.html
r1565 r1713 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++ ; -
FCKeditor/trunk/_whatsnew.html
r1708 r1713 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>