Most publishers give permission to use your preprint or your postprint in online education. Use Sherpa Romeo to check this. Sherpa Romeo is an online resource that aggregates and analyses publisher open access policies from around the world and provides summaries of self-archiving permissions and conditions of rights given to authors on a journal-by-journal basis