ngg_ajax_tinymce

Call TinyMCE window content via admin-ajax.

Description

ngg_ajax_tinymce(); 

Usage

  1. if ( !function_exists( 'ngg_ajax_tinymce' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextcellent-gallery/admin/ajax.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = ngg_ajax_tinymce(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/admin/ajax.php  
  1. function ngg_ajax_tinymce() { 
  2.  
  3. // check for rights 
  4. if ( !current_user_can('edit_pages') && !current_user_can('edit_posts') ) 
  5. die(__("You are not allowed to be here")); 
  6.  
  7. include_once( dirname( dirname(__FILE__) ) . '/admin/tinymce/window.php'); 
  8.  
  9. throw new E_Clean_Exit();