nxs_tiny_mce_before_init

The NextScripts: Social Networks Auto-Poster nxs tiny mce before init function.

Description

nxs_tiny_mce_before_init( $init ); 

Parameters (1)

0. $init
The init.

Usage

  1. if ( !function_exists( 'nxs_tiny_mce_before_init' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextscripts-social-networks-auto-poster/nxs_functions.php'; 
  3.  
  4. // The init. 
  5. $init = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = nxs_tiny_mce_before_init($init); 
  9.  

Defined (1)

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

/nxs_functions.php  
  1. function nxs_tiny_mce_before_init($init) { global $tinymce_version;  
  2. if (substr($tinymce_version, 0, 1)<4) $init['setup'] = "function( ed ) { ed.onChange.add( function( ed, e ) { nxs_updateGetImgsX( e ); }); }"; else 
  3. $init['setup'] = "function(ed) {ed.on('NodeChange', function(e) {nxs_updateGetImgsX(e);});}";  
  4. return $init;