Hi,
I'm trying to load config properties via the hidden "__config" field (in ColfFusion, by retrieving my config from a db). Everything works fine with one dimensional arrays like: FCKConfig.ToolbarStartExpanded= true. But when I try to create a new (dynamically created) Toolbarset it won't load the new set because the FCK editor doesn't seem to know about it.
I already figured out that the FCKConfig.LoadHiddenField (fck_startup.js) function can't handle multidimensional arrays like: ToolbarSets["CustomTFE"] = [['Source','DocProps','-','Save','NewPage','Preview']] because it creates an arrayposition with the key ToolbarSets["CustomTFE"] instead of an array ToolbarSets with an inner array CustomTFE.
Does anyone have a solution for this problem because these are the things I don't want:
- writing the config on each pageload to a file and point to the file as a customconfig property
- editing the core by editing the LoadHiddenField function
- retrieving the FCK object after initialisation and then try to customize it
Tnx in advance!!
Marcel Siepel
I'm trying to load config properties via the hidden "__config" field (in ColfFusion, by retrieving my config from a db). Everything works fine with one dimensional arrays like: FCKConfig.ToolbarStartExpanded= true. But when I try to create a new (dynamically created) Toolbarset it won't load the new set because the FCK editor doesn't seem to know about it.
I already figured out that the FCKConfig.LoadHiddenField (fck_startup.js) function can't handle multidimensional arrays like: ToolbarSets["CustomTFE"] = [['Source','DocProps','-','Save','NewPage','Preview']] because it creates an arrayposition with the key ToolbarSets["CustomTFE"] instead of an array ToolbarSets with an inner array CustomTFE.
Does anyone have a solution for this problem because these are the things I don't want:
- writing the config on each pageload to a file and point to the file as a customconfig property
- editing the core by editing the LoadHiddenField function
- retrieving the FCK object after initialisation and then try to customize it
Tnx in advance!!
Marcel Siepel