Further decouple WYMeditor from the core and replace with APIs.