CMS-3952 Wrong behavior: when new child added to expanded content, paren...

...t content becomes collapsed.
Place this method right after the `regenerateId()`. Also, instead of `this.id = Math.random().toString(36).substring(2);` call `this.regenerateId()`.