Add script closure config to editor