The ace editor library hasn't been updated for more than a year. Many important changes were made.
For example, currently CodeEditor conflicts with Chinese input method. This has been resolved in the upstream.
See also the request on the talk page :https://www.mediawiki.org/wiki/Topic:Tat8gxmbmjtpn5dl