¿Cómo saber si el TinyMCE está activado en Wordpress?



   AUTOR PREGUNTA

Publicado 16 septiembre 2013 - 10:34

La pregunta ya lo dice todo, ¿Cómo saber sí el TinyMCE está activado en Wordpress? gracias chicos.


¿Tienes la misma pregunta? Yo también

 

Publicado 16 septiembre 2013 - 13:09

Para verificar que el plugin del editor de texto TinyMCE esté activado podemos usar el siguiente código:
is_tinyMCE_active = false;
if (typeof(tinyMCE) != "undefined") {
  if (tinyMCE.activeEditor == null || tinyMCE.activeEditor.isHidden() != false) {
    is_tinyMCE_active = true;
  }
}

   AUTOR PREGUNTA

Publicado 16 septiembre 2013 - 17:03

Muchas gracias Alberto es muy buen ejemplo.

saludos.