Fixed insert media functions by correcting editor markup (id attribute).