This probably needs `typeof WikiaEditor != 'undefined'` also