Insert media into editor when they are clicked