Hi,
So i have a form that contains 3 fields for each language a total of 9 fields.
I use tabs to separate the fields of the three languages (French, English, Arabic)
var formData = [
{type: "block", list: [
{ type:"settings" , labelWidth:100, labelAlign:"right", inputWidth:500, position:"label-left" },
{ type:"input" , name:"titre_fr", label:"Titre", required:true },
{ type:"editor" , name:"desc_fr", label:"Description", labelAlign:"left", inputHeight:200, required:true },
{ type:"editor" , name:"contenu_fr", label:"Contenu", inputHeight:300, required:true },
{ type:"button" , name:"submit", value:"Envoyez", command:"validate" }
]},
{type: "block", id: "tab_en", list: [
{ type:"settings" , labelWidth:100, labelAlign:"right", inputWidth:500, position:"label-left" },
{ type:"input" , name:"titre_en", label:"Titre", required:true },
{ type:"editor" , name:"desc_en", label:"Description", labelAlign:"left", inputHeight:200, required:true },
{ type:"editor" , name:"contenu_en", label:"Contenu", inputHeight:300, required:true },
{ type:"button" , name:"submit", value:"Envoyez", command:"validate" }
]},
{type: "block", id: "tab_ar", list: [
{ type:"settings" , labelWidth:100, labelAlign:"right", inputWidth:500, position:"label-left" },
{ type:"input" , name:"titre_ar", label:"Titre", required:true },
{ type:"editor" , name:"desc_ar", label:"Description", labelAlign:"left", inputHeight:200, required:true },
{ type:"editor" , name:"contenu_ar", label:"Contenu", inputHeight:300, required:true },
{ type:"button" , name:"submit", value:"Envoyez", command:"validate" }
]}
];
var dhxTabbar = right_bottom.attachTabbar();
dhxTabbar.setSkin("dhx_skyblue");
dhxTabbar.addTab("a1", "Français", 70);
dhxTabbar.addTab("a2", "Anglais", 70);
dhxTabbar.addTab("a3", "Arabe", 70);
dhxTabbar.setTabActive("a1");
var form_1 = dhxTabbar.cells("a1").attachForm(formData);
dhxTabbar.cells("a2").attachObject("tab_en");
dhxTabbar.cells("a3").attachObject("tab_ar");
dhxTabbar.showInnerScroll();
The problem is the Editor is only active in the french tab (first tab) in the two other tabs the editor is rendered but not usable.
Is this a bug ?
This is the french tab
This is the english tab, when i click on the editor to give focus to it and start writing nothing happens, also as you can see there is no scroll bar.