The process of editing messenger RNA during transcription through removal of introns. Exons are joined together through a process called ligation.