Note that both object and class editors are very similar. I'll update the class editor in the same PR if that doesn't bring more difficulties.