onetone_tiny_mce_before_init

The Onetone onetone tiny mce before init function.

Description

onetone_tiny_mce_before_init( $init ); 

Parameters (1)

0. $init
The init.

Usage

  1. if ( !function_exists( 'onetone_tiny_mce_before_init' ) ) { 
  2. require_once '/includes/theme-functions.php'; 
  3.  
  4. // The init. 
  5. $init = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = onetone_tiny_mce_before_init($init); 
  9.  

Defined (1)

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

/includes/theme-functions.php  
  1. function onetone_tiny_mce_before_init( $init ) { 
  2. $init['setup'] = 'function( ed ) { ed.onKeyUp.add( function( ed, e ) {  
  3. var fieldID = e.target.getAttribute("data-id"); 
  4. jQuery("#"+fieldID).attr("data-changed", "true"); 
  5. jQuery("#optionsframework-submit input[name=\'update\'], #onetone-save-options").removeAttr("disabled"); 
  6.  
  7. }); }'; 
  8. return $init;