When actively using the "2017 wikitext editor" to edit a page, the interface is still in "wgAction":"view"
mode. Is this intentional?
With Javascript, how to I realize that the interface is in "edit"
mode while using the "2017 wikitext editor" to edit a page? For the old editors, I was able to use if(mw.config.get('wgAction') === 'edit'){ /* do something */ }
, but that does not work any longer.