EDITOR 2.5

Hi guys,

I am currently migrating my app to use the latest 2.5 suite…one issue that has arisen is the dhtmlx editor…has the method ‘setContentHTML’ been omitted?



Ritchie.


Hello,


yes, there method has been placed in dhtmlxeditor_ext.js by mistake. The latest dhtmlxeditor.js and dhtmlxeditor_ext.js are attached. Please, try to use them instead of originals.


dhtmlxeditor.zip (4.93 KB)
dhtmlxeditor_ext.zip (2.68 KB)

many thanks for the reply…that has sorted my problem

another issue that has arisen is the event handler for the accordian. I attach an event ‘onActive’ which used to get called on mouse clicking the accordian item and/or calling dhxAccord.openItem(“a”);
but it appears that the event does not execute when called through code…this used to work in 2.1

Any ideas?
Rgds,
Ritchie.


Yes, in the latest accordion version openItem doesn’t call onActive. So, please call onActive handler manually:


function doOnActive(id){


/some code here/


}


dhxAccord.attachEvent(“onActive”,doOnActive);


dhxAccord.openItem(“a”);


doOnActive(“a”);


or you can call the openItem method as follows do that automatically:


dhxAccord.openItem(“a”,“dhx_accord_outer_event”);






many thanks