"Call in Editor" Add Component, Delete Component

Can you give some sample code of how you did that. I’ve been struggling with this for a while now. Thanks in advanced.