Genes are used to perform gene editing. Replacement DNA is inserted by removing the already existing DNA. Cuts into DNA strands are done using engineered nucleases. You can read about Gene-editing (Advantages and Concerns) in the given link.
Further readings:
Comments