Opened 18 years ago
Closed 18 years ago
#527 closed Bug (fixed)
Fail to load in IE if FCKConfig.ToolbarSets has a trailing comma
Reported by: | Alfonso Martínez de Lizarrondo | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | FCKeditor 2.4.3 |
Component: | UI : Toolbar | Version: | FCKeditor 2.4.2 |
Keywords: | Cc: |
Description
If the user customizes the toolbarset and leaves a trailing comma then IE will fail to load the editor.
It can be fixed with
-
editor/_source/internals/fcktoolbarset.js
242 242 243 243 var oToolbar ; 244 244 245 if ( typeof( oToolbarItems ) == 'undefined' ) 246 continue ; 247 245 248 if ( typeof( oToolbarItems ) == 'string' ) 246 249 { 247 250 if ( oToolbarItems == '/' )
Is it worth?
I ask this question because people having this problem surely haven't read anything about how to customize the editor, and they should.
(And yes, I wanted to test how to put a patch right here ;-) )
Nice move Alfonso. Let's help the lazy developers out there.
It can be even simpler, comprehending also cases where, by some coding magic, it returns "null":
editor/_source/internals/fcktoolbarset.js
If you feel ok with it, go ahead committing it.
I understood it as soon as I saw your ticket :))