Is it spelled mideval or medieval?

It's spelled medieval.

m - e - d - i - e - v - a - l

not medeval,

not medevil,

and not mideval.