Split form into tabs with editor not working

Hi,
i use dhtmlx_v45 and Chrome 46.0.2490.71 m

When create form by xml and split into tabs, can’t type into editor. the editor is there, but does not allow write. the cursor does not appear

// ******* xml ***************
/* … /
echo(’’);
echo(’’);
echo (’’);
echo(’’);
/
… */

// ********* js *********
/* … /
myForm = new dhtmlXForm(“dhxForm”);
myForm.loadStruct("./xpto/forms/xpto.php");
myForm.attachEvent(“onXLE”, function () {
myTabbar.tabs(“a4”).attachObject(“tab4”);
});
/
… */

Hi
Try attached demo - i added all the code you need to get it work.
tabbar_form_editor.zip (341 KB)

Hi Darya,

thank you!

You are welcome!

Hi,

now i have new problem!

when load form by xml i set value in a editor but then don’t show’s up.

//***** XML / PHP **********


//********** JS **************************************************
myForm = new dhtmlXForm(“dhxForm”);
myForm.loadStruct(“./recrutamento/forms/edit_recrutamento.php?id=”+selId);
myForm.enableLiveValidation(true);

myForm.attachEvent(“onXLE”, function () {

myTabbar.tabs(“a2”).attachObject(“tab2”);
myTabbar.tabs(“a3”).attachObject(“tab3”);
myTabbar.tabs(“a4”).attachObject(“tab4”);
myTabbar.tabs(“a5”).attachObject(“tab5”);//tab of editor
myTabbar.tabs(“a6”).attachObject(“tab6”);

            myForm.getEditor("experiencia_profissional")._prepareContent(true);

});


what is the problem to use direct tabbar.tabs().attachEditor() ?

hi Andrei,

thank you by response.

don’t have any problem when attaching editor to tab.
i’m trying to pass one editor by de form to a tabbar and value of te editor is not appering.

well, then try the following, when tab with editor becomes visible:

myTabbar.attachEvent("onSelect", function(id){ if (id == "a5") { window.setTimeout(function(){ myEditor._prepareContent(true); // or myForm.getEditor(name)._prepareContent(true); },1); }; return true; });

and make sure

is exist on page (or how your form will inited?)

sorry, tab id should be “tab5” (not “a5”)

thank you by solution, but don’t resolve my problem.

My problem is: i have one form load by xml and separated after load into tabs. when i put values in editor, this values don’t show up. the editor is empty.

Hi

Could you please provide us complete demo including all correspondnig js/css files?
Please also add information regarding current and expected behaviour.

Here is a small guide how to make a complete demo:
docs.dhtmlx.com/tutorials__auxil … pport.html

If you’re using PRO or ENT edition, please send your demo to support@dhtmlx.com