I'm writing some customization for the WordPress editor, and running in to an odd issue.
If I console.log(tinyMCE.editors)
, I get an array output:
Clearly I can see there's are four keys in the array, but when I run console.log(Object.keys(tinyMCE.editors)
, I get:
And when I try to reference the editor I want to modify with console.log(tinyMCE.editors.content)
, I get:
I don't understand what's happening here, as far as I can tell the keys should exist, but I can't seem to reference them. What am I doing wrong?