tinyMCE.activeEditor = null WP editor loaded in ‘Text’ mode?

Use this one-liner:

if(!tinyMCE.activeEditor)jQuery(‘.wp-editor-wrap
.switch-tmce’).trigger(‘click’);

//Now you can use “tinyMCE.activeEditor” safely
console.log(tinyMCE.activeEditor.settings);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)