editor: bugfixes: inserting and removing content items