AnsweredAssumed Answered

Editor widget load event not firing

Question asked by ndilekli on Sep 10, 2018
Latest reply on Sep 10, 2018 by ndilekli

I am using an editor widget and it appears that the load event is not firing. Templatepicker's selection-change event fires though. Here is the relevant code:

var systemEditor = new Editor(systemParams, 'systemsEditorToolbarDiv');

systemEditor.startup();

systemEditor.on("load", function(){
    console.log("not firing");
})

On(systemEditor, "load", function() {
    console.log("not firing either");
});

systemEditor.templatePicker.on("selection-change", lang.hitch(this, function() {  
    console.log("this fires");   
}));

p.s. my final intent is to edit fieldInfos and hideFields attributes in layerInfos in the editor settings to hide and disable editing of certain fields.

Outcomes