Editor + Accordion have problems in Firefox

Hello,

I have a dhtmlxWindow which attaches URL dhxWins.window(id).attachURL("groupInfo.php?groupId=" + groupId);
by this URL i have next code:

dhxAccord = new dhtmlXAccordion("accordObj", "dhx_skyblue");
dhxAccord.setIconsPath("./common/icons/");
dhxAccord.addItem("a", "first item");
dhxAccord.addItem("b", "editor item");
dhxAccord.addItem("c", "vault item");
dhxAccord.cells('a').setIcon("eye.jpg");
dhxAccord.cells('b').setIcon("seo.jpg");
dhxAccord.cells('c').setIcon("attachment.png");
    		
dhxAccord.cells("a").attachURL("descrOne.php?groupId=" + groupId + "&getGroupInfo=1");
dhxAccord.cells("b").attachObject("groupInfoSEOContainer");
dhxAccord.cells("c").attachObject("groupInfoVaultContainer");
dhxAccord.cells("b").open();

// Editor init
seoEditor = new dhtmlXEditor("groupInfoSEOContainer", "dhx_black");
seoEditor.setIconsPath("./common/dhtmlx/dhtmlxEditor/codebase/imgs/");
seoEditor.setContentHTML("groupInfo.php?groupId=" + groupId + "&getSEO=1");
seoEditor.init();

The first problem:
If I do dhxAccord.cells(“b”).open(); then editor item opens with html content - it’s ok, but if I open some other accordion item e.g. dhxAccord.cells(“a”).open(); then I won’t get html content in my editor and won’t have ability to add some text to editor.

The second one:
If I do dhxAccord.cells(“b”).open(); and then go though other accordion items and then return to cell(“b”) I will no have ability to edit or change the text in editor.

There are no problems in Chrome or Opera, but my Firefox 3.6.6 doesn’t work.

Please assist.

Thank you.
Alex.

Hello,

locally the problem wasn’t reproduced (attached sample).

Also you may try to use the following:

[code]var seoEditor = null;
dhxAccord.attachEvent(“onActive”,function(id){
if(id==“b” && !seoEditor) initEditor();
})

function initEditor(){
seoEditor = new dhtmlXEditor(“groupInfoSEOContainer”, “dhx_black”);

}[/code]
demo.zip (40.1 KB)

Hi,

This is how I resolved the issue:

replaced this method

seoEditor = new dhtmlXEditor("groupInfoSEOContainer", "dhx_black");
dhxAccord.cells("b").attachObject("groupInfoSEOContainer");

with this

seoEditor = dhxAccord.cells("b").attachEditor();

It seems that accordion method attachObject doesn’t work correctly.

Thank you.